在查询多个索引列时,cassandra 可以使用多个本机二级索引吗?
使用来自http://www.datastax.com/dev/blog/whats-new-cassandra-07-secondary-indexes的规范示例
假设 users 列族在出生日期和状态上都有索引:
create column family users with comparator=UTF8Type
and column_metadata=[{column_name: full_name, validation_class: UTF8Type},
{column_name: birth_date, validation_class: LongType, index_type: KEYS},
{column_name: state, validation_class: UTF8Type, index_type: KEYS}];
当我查询时:
get users where state = 'UT' and birth_date = 1970;
cassandra 是否使用两个索引来获取行?
基于Apache Cassandra 中的复合索引,答案似乎是否定的