pritsag
pritsag

Reputation: 1193

How to get row count for some specific condition

I m using cassandra. is there a way to get a row count (key count) of a single column family in Cassandra for some specific condition?

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

get_count can only be used to get the column count.

Upvotes: 3

Views: 1260

Answers (1)

Schildmeijer
Schildmeijer

Reputation: 20946

Secondary index will solve your problems. (Secondary index lets your query on column values)

Upvotes: 3

Related Questions