I am new to cassandra and I use it for analytics tasks (requires good indexing).
I read in this post (and others): cassandra, select through a non-primary key , which I cannot request from my database with non-primary key columns with WHERE clause .
To do this, it seems that there are 3 possibilities (ALL with big flaws):
- Create a secondary index (not recommended for performance issues).
- Create a new table (I don't want redundant data, even if this is normal with cassandra).
- Place the column that I want to query within the primary key, in which case I need to define all parts of the primary key in my WHERE clause, and I cannot use a statement other than
IN or = .
Is there any other way to do what I'm trying to do ( WHERE clause with non-primary key column) without having 3 restrictions above?
database indexing where-clause cassandra nosql
farhawa
source share