memtable · shipping · also in-memory write buffer (LSM)

Memtable

A memtable is an in-memory structure that holds recent LSM-tree updates before they are flushed to sorted table files.

RocksDB's FAST 2021 architecture description separates the memtable from its recovery WAL and persistent SST files. A memtable flush and an SST compaction are different operations. [1] Do not infer a power-loss guarantee from the in-memory structure's name; the logging and acknowledgment policy must also be specified. In RocksDB, accumulated immutable memtables waiting for flush can trigger write backpressure; this is distinct from the amount of SST compaction work. [3]

Relations

related
Log-structured merge-tree, Sorted string table, LSM compaction, Write-ahead log, RocksDB column family, RocksDB write stall, Range tombstone, RocksDB

Citations

  1. Siying Dong, Andrew Kryczka, Yanqin Jin and Michael Stumm. Evolution of Development Priorities in Key-value Stores Serving Large-scale Applications: The RocksDB Experience. FAST 2021, pp. 33-49; sections 2.2 and 4. (accessed 2026-10-14)
  2. RocksDB v10.10.1. ColumnFamilyData::GetWriteStallConditionAndCause. (accessed 2026-10-15)

Further reading

  1. RocksDB: a WAL sync is not a memtable flush (accessed 2026-10-14)

JSON: /data/terms/memtable.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Memtable. Hesela. 2026-11-29. https://hesela.dev/terms/memtable/