Tag

Read Path

1 views collected around this technical thread.

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.

CompactionDatabase InternalsLSM Tree
0 likes · 16 min read
Understanding LevelDB Architecture, Read/Write Flow, and Compaction Process