Datastax documentation talks about creating more than one secondary index here. But when I have to query in a where clause using both indexes the documentation suggests using allow filtering. 1) I am worried about using allow filtering on production and 2) If I am to use allow filtering, does that not defeat the whole purpose of those indexes in a scenario where I always have to use both those indexes together.
A possible solution seems to be custom indexes on both columns, but the apache documentation here is a bit vague and also does not speak about performance of these.
So what is the suggested approach when I need to query with multiple secondary indexes? Any opinions on solving this will be helpful.
EDIT1: A view of my cassandra table is available on this link represented as a Java Class. I have to query using where col1='val1' and col2='val2' and col3='val3'
EDIT2: I did think about creating a new column with data of col1,2,3 something like newcol='val1val2val3' so I can create a single secondary index on newcol and do away with this conundrum, but it seems to be a bit of a hack rather than strategic. Any comments on this plan will be appreciated. PS: This newcol will have a medium cardinality .
EDIT3: I did find good info on secondary indexes and allow filtering here which does seem to help