01Chapter 1: Why LSM trees exist: B-trees, random writes, and sequential I/OThis chapter assumes you know basic data structures (hash maps, sorted arrays, binary search). It also assumes you know the difference between memory and disk, and between sequential and random I/O. You should be able to read short Python programs.2 min read
02Chapter 2: The big picture: memory, log, and sorted filesThis chapter gives you the working model of an LSM storage engine. Later chapters take each part in detail. It assumes you know hash maps, sorted arrays, binary search, the difference between memory and disk, and sequential versus random I/O. You should also be able to read short Python programs.2 min read
03Chapter 3: The memtable: absorbing writes in memoryThis chapter assumes you can read short Python programs, know how hash maps and sorted arrays work, and understand the difference between memory and disk I/O. It covers the first stop for every write in an LSM tree: the memtable.2 min read
04Chapter 4: The write-ahead log: durability for the memtableThis chapter assumes you know what a memtable is (an in-memory sorted or hashed buffer for recent writes), the difference between memory and disk, and how sequential and random I/O differ. You should also be able to read short Python programs.2 min read
05Chapter 5: SSTables: immutable sorted filesThis chapter assumes you know hash maps, sorted arrays, binary search, and the difference between sequential and random I/O. It also assumes you can read short Python programs.2 min read
06Chapter 6: Flushing the memtable into a new SSTableThis chapter assumes you know what a memtable and an SSTable are, and that you can read short Python programs. Flushing is the step that turns the in-memory table into an immutable sorted file on disk.2 min read
07Chapter 7: Blocks and sparse indexes inside an SSTableThis chapter assumes you know binary search and sorted arrays. You should also know that disk reads happen in fixed-size pages, and you should have read the previous chapter on SSTables.2 min read
08Chapter 8: Reading a key across memtable and SSTablesThis chapter assumes you know hash maps, sorted arrays, binary search, and the difference between memory and disk. It also assumes you have seen the memtable and SSTable from earlier chapters. Here you will trace a point lookup and see why the order of the search matters.2 min read
09Chapter 9: Deleting data with tombstonesThis chapter assumes you know how the memtable, SSTables, and the read path fit together. It covers how an LSM store deletes a key, and why that is harder than it sounds.2 min read
10Chapter 10: Bloom filters: skipping files that cannot contain a keyThis chapter assumes you know how the LSM read path works. A lookup checks the memtable, then each SSTable from newest to oldest. It also assumes you can read short Python programs and know what a hash function is.2 min read
11Chapter 11: Range scans with merging iteratorsThis chapter assumes you know the read path from the previous chapters: a key may live in the memtable or in several SSTables, and newer sources win. It also assumes you can read short Python programs and know what a heap is.2 min read
12Chapter 12: Compaction: merging files in the backgroundThis chapter assumes you know how a memtable flushes into immutable SSTables, how a read checks the memtable and then SSTables from newest to oldest, and how tombstones mark deletes.2 min read
13Chapter 13: Size-tiered compactionThis chapter assumes you know how a memtable is flushed into an SSTable, how a read checks tables from newest to oldest, and how tombstones mark deletes. If any of those are unclear, review the earlier chapters first.2 min read
14Chapter 14: Leveled compactionThis chapter assumes you know the memtable, SSTables, tombstones, and the basic compaction idea of merging files so newer values replace older ones. Leveled compaction is the second main strategy for deciding which files to merge and when.2 min read
15Chapter 15: Write, read, and space amplificationThis chapter assumes you know how a memtable, SSTables, Bloom filters, and compaction work. It gives you three ratios for comparing compaction strategies and tuning choices.3 min read
16Chapter 16: Recovering after a crashThis chapter assumes you know how the memtable, write-ahead log (WAL), and flush work from earlier chapters. It covers what a store must do when the process restarts after a crash.2 min read
17Chapter 17: Tuning an LSM engine for your workloadThis chapter assumes you know the memtable, flush, SSTable read path, Bloom filters, tombstones, both compaction strategies, and write, read, and space amplification. Tuning means choosing which kind of amplification your workload can afford.2 min read
18Chapter 18: LSM trees in LevelDB, RocksDB, and CassandraThis chapter assumes you know the memtable, write-ahead log, SSTable, compaction, and amplification ideas from earlier chapters. Here you map those ideas onto three engines you are likely to meet in practice.2 min read