The problem B-trees have with heavy writes
Every insert into a B-tree is a random write: find the right leaf page (random read), modify it (random write), update WAL (sequential write). Under high write load, that random leaf access becomes the bottleneck. Worse, page splits propagate upward, dirtying multiple pages per insert.
Write amplification measures how many bytes hit disk per byte of user data. A B-tree under heavy random-insert load can exhibit 10โ30x write amplification just from splits and WAL. On flash storage, write amplification directly shortens SSD lifespan and saturates the write bandwidth.
Log-Structured Merge-trees (LSM-trees) eliminate the random-write problem by converting all writes into sequential appends โ at the cost of more complex reads and background compaction.
