Why are all writes in Cassandra considered upserts, and what does that mean for INSERT versus UPDATE?

Last updated 11 July 2026

  • Cassandra never reads before writing: it just appends timestamped cells, so INSERT and UPDATE both create the row if absent or overwrite it if present (an upsert).

  • So INSERT silently overwrites a duplicate key, UPDATE creates a missing row, and conflicts resolve by last-write-wins on timestamp.

  • Real differences remain: only INSERT sets a row liveness marker and supports IF NOT EXISTS, while UPDATE supports IF EXISTS and counter/collection ops (LWT forms do read first via Paxos).

  • https://www.red-gate.com/simple-talk/other/understanding-data-modifications-in-cassandra/
  • https://axonops.com/docs/data-platforms/cassandra/cql/dml/insert/
  • https://medium.com/@HobokenDays/cassandra-commands-unveiled-exploring-the-nuances-of-update-insert-39fdb06eadb0
  • https://goodspace.ai/interview-questions/cassandra
  • https://www.youtube.com/watch?v=Y-vY49lDeKY
  • https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/cqlUpdate.html
  • https://cassandra.apache.org/doc/4.1/cassandra/cql/types.html
All Cassandra interview questions