The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

Maintaining top N key-values pairs in Cassandra's table

I want to maintain a Cassandra table of key-value pairs (k,c).

The table should store only the pairs with the top N values of the c integer field.

Is there a way to do this in Cassandra?