Log-Structured Merge Trees
CSCI 333
Log-Structured Merge Trees CSCI 333 How Should I Organize My Stuff - - PowerPoint PPT Presentation
Log-Structured Merge Trees CSCI 333 How Should I Organize My Stuff (Data)? How Should I Organize My Data? Di ff erent people approach the problem di ff erently [https://pbfcomics.com/comics/game-boy/] How Should I Organize My Data?
CSCI 333
[https://pbfcomics.com/comics/game-boy/]
(traverse root- to-leaf path)
(traverse root- to-leaf path)
(D)
from ki to kl
than (ki, vi)
In-memory SSTable Operation Log
(k1,v1) 1 2 3
In-memory SSTable
4
In-memory SSTable Operation Log
(k1,v1) 1 2 3
In-memory SSTable
4 1
Write operation to log (immediate persistence)
2
Update in-memory SSTable
3
(Eventually) promote full SSTable and initialize new empty SSTable
4
Merge/write in-memory SSTables to L0
create an SSTable in the next tier
write a pointer