Why does BigTable have column families?

邮差的信 提交于 2019-12-21 21:18:25

问题


Why is BigTable structured as a two-level hierarchy of "family:qualifier"? Specifically, why is this enforced rather than just having columns and, say, recommending that users name their qualifiers "vertical:column"?

I am interested in whether or not enforcing this enables some engineering optimizations or if this is strictly a design thing.


回答1:


There are a couple of advantages to family groups:

  1. queries become easier by getting a group of column qualifiers in a single column family

  2. Bigtable has a notion of "locality groups". Locality groups allow a family to be written to a separate file, which helps in situations where some column families are accessed less frequently than others. You can see some information about locality groups in this analysis of HBase vs. Bigtable.



来源:https://stackoverflow.com/questions/46859451/why-does-bigtable-have-column-families

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!