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
- 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.
- RocksDB v10.10.1. ColumnFamilyData::GetWriteStallConditionAndCause.