Re: Consistent reads and first write wins

2015-07-08 Thread Jens Rantil
Hi John, The general answer: Each cell in a CQL table has a corresponding timestamp which is taken from the clock on the Cassandra node that orchestrates the write. When you are reading from a Cassandra cluster the node that coordinates the read will compare the timestamps of the values it fetches

Consistent reads and first write wins

2015-07-07 Thread John Sanda
Suppose I have the following schema, CREATE TABLE foo ( id text, time timeuuid, prop1 text, PRIMARY KEY (id, time) ) WITHCLUSTERING ORDER BY (time ASC); And I have two clients who execute quorum writes, e.g., // client 1 INSERT INTO FOO (id, time, prop1) VALUES ('test', , 'bar');