How to get the number of rows for a specific condition

I use cassandra. Is there any way to get the number of rows (the number of keys) of one family of columns in Kassandra for any particular condition?

(for example, select * from the user where salary> = 5000 in mysql)

get_count can only be used to count columns.

+3
source share
1 answer

A secondary index will solve your problems. (The secondary index allows you to query column values)

+3
source

Source: https://habr.com/ru/post/1784682/


All Articles