0 votes
in Cassandra by
When to use secondary indexes?

1 Answer

0 votes
by

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 be form the same town, date of birth however will not be such a good choice).

Related questions

0 votes
asked Jan 1, 2023 in Cassandra by john ganales
+1 vote
asked May 31, 2019 in NoSQL by aaravkhandelwal.2018
...