/plushcap/analysis/datastax/datastax-cassandra-anti-patterns-queues-and-queue-datasets

Cassandra Anti-Patterns: Queues and Queue-like Datasets | Datastax

What's this blog post about?

Cassandra uses a log-structured storage engine, which employs tombstones to indicate deleted rows or columns. These tombstones are kept for at least the time specified by gc_grace_seconds before being discarded during compaction. While this system allows fast deletes and writes, it can lead to performance issues when reading data with many tombstones, especially in column-level deletes scenarios. To mitigate these issues, consider partitioning data with high churn rate into separate rows or tables and deleting entire rows or truncating tables when needed. Additionally, specifying a start column for queries can help skip collecting irrelevant tombstones and improve performance.

Company
DataStax

Date published
April 26, 2013

Author(s)
Aleksey Yeschenko

Word count
588

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.