Why does reading past accumulated tombstones cause performance problems?
Last updated
Tombstones are read, not skipped: replicas must materialize them to know what is deleted, costing CPU and heap even when few live rows return.
Range/slice queries over partitions with many deletes suffer most, causing high latency, GC pressure, and aborts at the failure threshold.
Common causes: queue-like usage, frequently overwritten collections, and inserting nulls (which create tombstones).
- https://cassandra.apache.org/doc/latest/cassandra/managing/operating/compaction/tombstones.html
- https://medium.com/zooz-engineering/a-walk-among-the-tombstones-ef9a8dc80546
- https://medium.com/@lkalapati.dba/cassandra-performance-stabilization-497e40ec42d7
- https://docs.datastax.com/en/hyper-converged-database/2.0/manage/configure/configure-cassandra-yaml.html
- https://www.scylladb.com/glossary/cassandra-garbage-collection/
- https://medium.com/@shubham.patel191295/cassandra-for-system-design-interviews-when-to-pick-it-how-it-shards-and-every-question-youll-5542335def0e
- https://cassandra.apache.org/doc/stable/cassandra/managing/operating/metrics.html
- https://docs.datastax.com/en/dse/6.9/architecture/database-internals/architecture-tombstones.html