Re: CQL Tables in Cassandra with an Index

2013-11-08 Thread Techy Teck
If I execute the above query from CQL shell, it doesn't work for me at all... This is what I get - cqlsh:pp insert into test_new (employee_id, employee_name, value, last_modified_date) values ('1', 'e29', 'some_new_value', now()) if not exists ; Bad Request: line 1:123 missing EOF at 'if' Is

Re: CQL Tables in Cassandra with an Index

2013-11-08 Thread Alex Popescu
Conditional inserts/updates (lightweight transactions) are available only in C* 2.0+. Also most of the time you should try to think about alternative ways to solve the problem and rely on these only if you cannot find a different solution (the reason for this is that they come with performance

CQL Tables in Cassandra with an Index

2013-11-07 Thread Techy Teck
I am using the below table in our use case - create table test_new ( employee_id text, employee_name text, value text, last_modified_date timeuuid, primary key (employee_id, last_modified_date) ); create index employee_name_idx on test_new