What is a cell in Cassandra, and how do cell-level timestamps work?
Last updated
A cell is the smallest storage unit: one non-key column value in a row, stored with a write timestamp (microseconds) and optional TTL. A deletion is a timestamped tombstone cell.
Replicas reconcile cell by cell with last-write-wins, so concurrent updates to different columns of the same row both survive.
The coordinator normally assigns the timestamp (override with
USING TIMESTAMP, inspect withWRITETIME()). Clock skew can make a stale write win.
- https://cassandra.apache.org/doc/stable/cassandra/architecture/dynamo.html
- https://docs.datastax.com/en/hyper-converged-database/2.0/drivers/timestamps.html
- https://cassandra.apache.org/doc/stable/cassandra/developing/cql/dml.html
- https://www.reddit.com/r/cassandra/comments/1iutipx/what_happens_if_two_columns_have_the_same/
- http://jakubdziworski.github.io/java/cassandra/database/2022/11/22/cassandra-updates-ordering.html
- https://codemia.io/knowledge-hub/path/timestamp_comparison_in_cassandra