From the course: Cassandra Data Modeling Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Understand compaction

Understand compaction

- [Instructor] Cassandra does not reclaim unneeded storage by deleting rows of data. Instead it uses a process called compaction. Compaction is a process of merging data from SSTables into a new SSTable. This helps with reclaiming space that has been marked with tombstones, and it also helps keep down the number of SSTables that have to be interrogated when responding to queries. After compacting, old SSTables continue to exist until the Java virtual machine performs a garbage collection operation, or the Cassandra node restarts. One of the potential problems with compaction is that both old and the obsolete SSTables will continue to exist for some time. Cassandra provides three ways to perform compaction with different trade offs. The three types are leveled compaction, size-tiered compaction, and time window compaction. Level compaction is a good choice when your application needs low-latency read operations, there…

Contents