Database / RocksDB Basics Interview Questions
What is Flushing in RocksDB?
Flushing is the process of writing a full, immutable MemTable's contents out to disk as a new SSTable.
- Triggered once the active MemTable reaches its configured size limit
- The full MemTable is marked immutable, and a new, empty MemTable takes over for future writes
- A background thread performs the actual write to disk, so it doesn't block new writes from continuing to arrive
This is the step that moves data from RocksDB's fast, memory-resident write path into its durable, disk-resident storage as a Level-0 SSTable.
More Related questions...