Indexing 卡桑德拉二级指数

Indexing 卡桑德拉二级指数,indexing,cassandra,Indexing,Cassandra,只是想学习Cassandra并尝试将RDBMS设计转换为Canssandra。 考虑到我的应用程序正在多个数据中心部署 数据库设计: A) CF : USER 1) email_id - primary key 2) fullname 3) organization - ( I didnt create a separate table for organization ) B) C

只是想学习Cassandra并尝试将RDBMS设计转换为Canssandra。 考虑到我的应用程序正在多个数据中心部署

数据库设计:

       A) CF : USER
              1) email_id - primary key
              2) fullname
              3) organization - ( I didnt create a separate table for organization )

       B) CF : ORG_USER

             1) organization - Primary Key
             2) email_id

             Here, my intention is to get users belong to an organization.
             Here, I can make the organization in the user table as secondary index, but heard that, this may hit the performance.
             Could you please clarify me which is the better approach?
谢谢,
Baskar.S

只要基数较低,该组织可能是二级索引的良好候选组织。换句话说,如果组织中有大量重复值,请使用辅助索引。如果不是,手动构建索引(正如您在组织用户CF中所指出的)是一种很好的方法