Querying is made more flexible by adding secondary indexes to table columns. You can add indexed columns to the WHERE SELECT .
When to use secondary indexes
You want to query columns that are not a primary key and are not part of a composite key. The column that you want to request has several unique values (I mean, for example, that you have the City column, this is a good choice for secondary indexing, because many people will form the same city, date of birth, however, would not be such a good choice).
When to Avoid Secondary Indexes
Trying not to use secondary indexes in columns contains a high count of unique values, and this will produce several results.
As always, check the documentation:
source share