Tagged articles
2 articles
Page 1 of 1
Tencent Cloud Developer
Tencent Cloud Developer
Dec 10, 2020 · Databases

Understanding LevelDB Architecture, Read/Write Flow, and Compaction Process

LevelDB stores data using an in‑memory Memtable that flushes to immutable tables and disk‑based SSTables, writes are logged then batched and applied through a writer queue, reads check Memtable, immutable Memtable, then SSTables, and background compactions merge tables to improve read performance and reclaim space.

Database InternalsLSM‑TreeLevelDB
0 likes · 16 min read
Understanding LevelDB Architecture, Read/Write Flow, and Compaction Process