---
answer: direct
beat: system-design
source: 1 article · updated: August 17, 2026
---

What happens during the LSM compaction process?

As MemTables fill, they flush to immutable SSTables on disk. Eventually, multiple overlapping SSTables exist at the same level; compaction merges them into fewer, larger SSTables at the next level, removing duplicates and deleted keys. This keeps read paths efficient but costs CPU and write amplification.

Answered in

LSM-Trees vs B-Trees: Why Cassandra Chose Sequential Writes

B-trees seek random disk positions. LSM-trees buffer in memory and flush sequentially, converting random I/O into sequential writes for millions of ops/sec.

Crashtech Editorial August 17, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.