Secondary indexes can only be tested for equality

In the section on Retrieving status updates for a specific time range in Chapter 4, Beyond Key-Value Lookup, we explored the use of inequality operators to select ranges of columns. Secondary indexes can only be queried for equality; queries such as the following are not possible:

SELECT * FROM "user_follows" WHERE "follower_username" > 'alice';

Get Learning Apache Cassandra - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.