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 - Cassandra Tutorial
From the course: Cassandra Data Modeling Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Understand the query process4m 21s
-
(Locked)
Understand commit writes2m 38s
-
(Locked)
Bloom filters and query processing1m 52s
-
(Locked)
Understand deletes and tombstones1m 46s
-
(Locked)
Understand compaction1m 28s
-
(Locked)
Challenge: Diagnose performance problem18s
-
(Locked)
Solution: Diagnose performance problem22s
-
(Locked)
-