I have a table as follows in Cassandra 2.0.8:
CREATE TABLE emp ( empid int, deptid int, first_name text, last_name text, PRIMARY KEY (empid, deptid) )
when I try to search by: "select * from emp where first_name='John';"
cql shell says:
"Bad Request: No indexed columns present in by-columns clause with Equal operator"
I searched for the issue and every places it says add a secondary index for the column 'first_name'.
But I need to know the exact reason for why that column need to be indexed? Only thing I can figure out is performance. Any other reasons?