I am new to cassandra
and I am using it for analytics tasks (good indexing needed ).
I read in this post (and others): cassandra, select via a non primary key that I can't query my DB with a non-primary key columns with WHERE clause
.
To do so, it seems that there is 3 possibilities (ALL with major disadvantages):
- Create a secondary index (not recommended for performance issues).
- Create a new table (I don't want redundant data even if it's ok with cassandra).
- Put the column I want to query by within the primary key and in this case I need to define all the parts of the primary key in my WHERE clause and I can't uses other operator than
IN
or=
.
Is there an other way to to what I am trying to do (WHERE clause
with non-primary key column) without having the 3 constraints above?
mongodb
is recommended more thancassandra
but forread/write
performance (which is highly important in my case) and the latter is very bad in this point. – farhawa