LSM compaction
Reclaim and reshape immutable levels so reads stay bounded.
LSM compaction
What it is
Background merge of segments drops obsolete keys and keeps sorted runs.
When to use
Write-heavy stores with immutable flushes.
Failure mode
Compaction debt → read amp and space amp blowups.