Google News
logo
Cassandra - Interview Questions
When to use secondary indexes?
You want to query on a column that isn't the primary key and isn't part of a composite key. The column you want to be querying on has few unique values (what I mean by this is, say you have a column Town, that is a good choice for secondary indexing because lots of people will form the same town, date of birth however will not be such a good choice).
Advertisement