Re: insert two records with same primary key via batch

2014-08-16 Thread 廖欽啟
wow, that's really interesting. Thanks for saving my time. On 16 August 2014 20:56, DuyHai Doan wrote: > You're running into funny results due to the way CQL3 handles statements > in batches. Read this: > https://github.com/doanduyhai/Achilles/wiki/Batch-Mode#statements-ordering > > There is al

Re: insert two records with same primary key via batch

2014-08-16 Thread DuyHai Doan
You're running into funny results due to the way CQL3 handles statements in batches. Read this: https://github.com/doanduyhai/Achilles/wiki/Batch-Mode#statements-ordering There is already a JIRA opened but according to the developers this is the expected behavior. In your example, largest value

insert two records with same primary key via batch

2014-08-16 Thread 廖欽啟
Hi, I'm trying this cql against cassandra 2.0.9: BEGIN BATCH INSERT INTO cqlengine_test_lwt.test_if_not_exists_model (id, count, text) VALUES (1, 8, '123'); INSERT INTO cqlengine_test_lwt.test_if_not_exists_model (id, count, text) VALUES (1, 9, '111'); APPLY BATCH; In thi