LSM vs B-tree
The usual rule: write-heavy wants an LSM, read-heavy wants a B-tree. Where exactly does the choice flip?
Two ways of keeping a table on disk are billed for the same work: one overwrites the page where a row lives, the other appends now and tidies up later. Three dials set the mix of reads and writes and the shape of the appending engine. Watch the winner change hands, and change hands somewhere else on each tab.
Included with a plan
This lab is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
the lesson Storage Engines
The whole idea this lab came from, told start to finish.
on the path Module 1 of 3 in Data Systems: Data on one machine
The lessons, boards and videos around this lab, in reading order.
see also Bigtable: A Distributed Storage System for Structured Data and The Log-Structured Merge-Tree (LSM-Tree) in Papers.