google cloud bigtable列版本未删除
google cloud bigtable column versions are not deleted
我们在 cloud bigtable 中创建了一个 table 具有两个列族。一个列族有 30 个版本,另一个列族有 1 个版本。但是,当我们查询 table 时,我们将获得我们已将最大版本数设置为 1 的列的多个版本。
Table 创建语句:
create 'myTable', {NAME => 'cf1', VERSIONS => '30'}, {NAME => 'cf2', VERSIONS => '1'}
Describe 'myTable':
{NAME => ‘cf2’, BLOOMFILTER => ‘ROW’, VERSIONS => ‘**1**’, IN_MEMORY => ‘false’, KEEP_DELETED_CELLS => ‘FALSE’, DATA_BLOCK_ENCODING => ‘NONE’, TTL => ‘FOREVER’, COMPRESSION => ‘NONE’, MIN_VERSIONS => ‘0’, BLOCKCACHE => ‘true’, BLOCKSIZE => ‘65536’, REPLICATION_SCOPE
=> ‘0’}
{NAME => ‘cf1’, BLOOMFILTER => ‘ROW’, VERSIONS => ‘**30**’, IN_MEMORY => ‘false’, KEEP_DELETED_CELLS => ‘FALSE’, DATA_BLOCK_ENCODING => ‘NONE’, TTL => ‘FOREVER’, COMPRESSION => ‘NONE’, MIN_VERSIONS => ‘0’, BLOCKCACHE => ‘true’, BLOCKSIZE => ‘65536’, REPLICATION_SCOPE
=> ‘0’}
大table 垃圾收集是如何工作的?它多久删除一次旧版本?还是我们在创建 table 时遗漏了什么?
来自 Bigtable 文档:值的删除在后台随机发生,因此您可能仍然可以在数据过期后 几天 内读取数据.
我们在 cloud bigtable 中创建了一个 table 具有两个列族。一个列族有 30 个版本,另一个列族有 1 个版本。但是,当我们查询 table 时,我们将获得我们已将最大版本数设置为 1 的列的多个版本。
Table 创建语句:
create 'myTable', {NAME => 'cf1', VERSIONS => '30'}, {NAME => 'cf2', VERSIONS => '1'}
Describe 'myTable':
{NAME => ‘cf2’, BLOOMFILTER => ‘ROW’, VERSIONS => ‘**1**’, IN_MEMORY => ‘false’, KEEP_DELETED_CELLS => ‘FALSE’, DATA_BLOCK_ENCODING => ‘NONE’, TTL => ‘FOREVER’, COMPRESSION => ‘NONE’, MIN_VERSIONS => ‘0’, BLOCKCACHE => ‘true’, BLOCKSIZE => ‘65536’, REPLICATION_SCOPE
=> ‘0’}
{NAME => ‘cf1’, BLOOMFILTER => ‘ROW’, VERSIONS => ‘**30**’, IN_MEMORY => ‘false’, KEEP_DELETED_CELLS => ‘FALSE’, DATA_BLOCK_ENCODING => ‘NONE’, TTL => ‘FOREVER’, COMPRESSION => ‘NONE’, MIN_VERSIONS => ‘0’, BLOCKCACHE => ‘true’, BLOCKSIZE => ‘65536’, REPLICATION_SCOPE
=> ‘0’}
大table 垃圾收集是如何工作的?它多久删除一次旧版本?还是我们在创建 table 时遗漏了什么?
来自 Bigtable 文档:值的删除在后台随机发生,因此您可能仍然可以在数据过期后 几天 内读取数据.