Cassandra and Secondary-Indexes, how do they work internally?

a 夏天 提交于 2019-12-05 01:39:56
zznate

Secondary indexes are basically just another column family. They are not directly accessible to users, but you can see statistics via the JMX bean: org.apache.cassandra.db.IndexedColumnFamilies

You can consult the statistics here to gauge the effectiveness of your index as you would a normal column family.

For more details see these previous posts:

How are Cassandra's 0.7 Secondary Indexes stored?

How scalable are automatic secondary indexes in Cassandra 0.7?

And since you have a hector tag, here is a link to the test case for IndexedSlicesQuery: https://github.com/rantav/hector/blob/master/core/src/test/java/me/prettyprint/cassandra/model/IndexedSlicesQueryTest.java

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