I came to know that Cassandra doesn't support OR in where clause, but I need an equivalent for the following query :
select * from table where column1 = '123' or column2 = '123';
As OR is not supported in Cassandra can I use Batch queries like the following and combine the result in the program and is it efficient?
[ select * from table where column1 = '123' , select * from table where column2 = '123']
If not is there any way to achieve the above stated simple logic.
In my case, both column1 and column2 together are the Primary key. i.e. composite partition key.
Can I combine column1 and column2 as a list [column1, column2] and query like :
select * from table where list contains '123';
and creating secondary index on the list