Storage & Durability
Persist a history, recover its state, and preserve deletes through compaction.
1 / 8
Persist a history, recover its state, and preserve deletes through compaction.
set a=1, delete a: absent, even if memory never applied the delete.k@6=value.k@8=delete.For k@7=delete over k@6=value:
| Cutoff | Stored compaction output | Visible key |
|---|---|---|
| 5 | k@7=delete |
absent |
| 7 | k@7=delete |
absent |
| 8 | none | absent |
GC drops the winning old marker and its shadowed versions.
CompactRuns: complete two-run visible materialization; omit deletes.LSMGet: timestamp-first lookup; tombstones participate in ranking.MultiWayCompaction: timestamp-first winner, run order breaks ties.A winning marker is at 15; cutoff is 16. What is emitted under full coverage? What changes if an older overlapping run is excluded?
Explain both before opening the lesson's model answers or taking the checkpoint.