Hacker News new | ask | show | jobs
by aphyr 4675 days ago
you'd be able to write them atomically

To clarify, this is only the case if you use Cassandra 2.0 transactions; normal batched writes are not atomic in the sense you're probably thinking.

3 comments

They are atomic, they are not isolated. Those are two different properties. The "A" vs the "I" in ACID. http://en.wikipedia.org/wiki/ACID

Edit: Actually, they are isolated in the sense of ACID, doesn't matter what order you do to operations, the answer will be the same. But not isolated the way you want isolated described.

The scenario that he's found is when the two timestamps are actually identical. In that scenario, Cassandra cannot maintain its atomicity guarantee.
No, they are not isolated in the sense of ACID. This behavior violates P0.
No batching here, just single-partition, two cell update. Atomic, but not isolated in the way you define isolation in your gist.
Actually, even in Cassandra 1.2, batch operations were atomic unless otherwise specified.