开发者

How hbase handle indexed table consistency with data table?

开发者 https://www.devze.com 2023-02-14 02:54 出处:网络
When there is high concurrency up开发者_StackOverflowdates in index table how hbase ensure index consistency with data? that scan on index table won\'t see obsolete data when query primary table.

When there is high concurrency up开发者_StackOverflowdates in index table how hbase ensure index consistency with data? that scan on index table won't see obsolete data when query primary table.

For example there is "topic" indexed by time and "posts" table, when post comes topic table is updated and also secondary index on time column.

# topics table
key: uuid
columns: [title, time]
secondary index: time -> uuid (key)

If there is scan by secondary index data may be changed and scan can miss/ get obsolete data? How hbase handle indexed table consistency with data table?


HBase does not support transactions between two tables in a way that you describe. All semantic dependencies in your data model are not enforced by HBase. If you delete an entry from the Posts table, it is not cascaded to another table, unless your program handles that explicitly

0

精彩评论

暂无评论...
验证码 换一张
取 消