LSM-Tree Compaction Strategies
Test your knowledge on the internal mechanics of LSM-trees, specifically focusing on Size-Tiered, Leveled, and FIFO compaction strategies used in modern NoSQL databases.
Sample Questions
What is the primary goal of the compaction process in an LSM-Tree?
- To convert the MemTable into an SSTable
- To reclaim space and merge multiple SSTables into a more efficient structure
- To encrypt data before it is written to the disk
- To create a backup of the database
Which compaction strategy is characterized by merging SSTables of similar sizes into a larger SSTable?
- Leveled Compaction
- Time Window Compaction
- Size-Tiered Compaction
- Date-Tiered Compaction
In Leveled Compaction, what is the typical size ratio between Level N and Level N+1?
- 1:1
- 1:2
- 1:5
- 1:10