BlobDB (RocksDB)
BlobDB is RocksDB's key-value separation facility for storing larger values in blob files while keeping references in the LSM-tree.
Integrated BlobDB uses rocksdb::DB rather than legacy StackableDB. Its background-extraction path creates key-sorted files during flush/compaction; compaction relocates blobs and references together. [1]
RocksDB v11.8.1 has experimental Blob Direct Write v1, disabled by default. Qualifying Put values are externalized before WAL/memtable insertion, which then carry BlobIndex references. PutCF leaves values below min_blob_size inline: equality qualifies. TimedPutCF passes through without direct-write separation. [2] [3]
Active files can serve reads before MANIFEST registration. Flush/SST creation must make them manifest-visible for the supported v1 recovery path; it is not WAL replay of active direct-write files. [2] [4]
The upstream close test reads four keys after close/reopen with avoid_flush_during_shutdown enabled. Close forces a flush; this is not an abrupt crash. Checkpoint, backup and live-file enumeration must flush pending direct-write state or may return NotSupported. [5] [2]
Partitions control file placement, not automatically writer parallelism or TTL expiry. Default placement is round-robin; a custom callback must be supplied again on reopen. [2] [6]
WiscKey instead checks record liveness against the LSM-tree before relocating survivors. Its recovery argument does not specify the later RocksDB implementation. [7]
Relations
- related
- RocksDB, Key-value separation
Limitations
- The direct-write details describe the experimental reduced-scope v1 contract in RocksDB v11.8.1, not all BlobDB versions. Ordered single-memtable-writer mode is required; concurrent memtable writes, pipelined writes, unordered writes and two write queues are unsupported. [2]
Citations
- RocksDB project: integrated BlobDB design and garbage collection.
- RocksDB v11.8.1: advanced_options.h, experimental direct-write v1 contract.
- RocksDB v11.8.1: BlobWriteBatchTransformer::PutCF, TimedPutCF and PutEntityCF.
- RocksDB v11.8.1: blob generation rotation, flush registration and active-file reads.
- RocksDB v11.8.1: direct-write close, option, threshold and snapshot tests (reviewed, not executed).
- Xingbo Wang. Blob Direct Write With Partitioned Blob Files. RocksDB project, 20 June 2026.
- Lu, Pillai, Arpaci-Dusseau and Arpaci-Dusseau. WiscKey. FAST 2016, pp. 133-148, sections 3.2-3.3.
Further reading
Sources & caveats
- Source review at RocksDB v11.8.1 commit abeebd9630f11bd08c28b7bd43c7bdfc62050654. Upstream tests were read, not run; no native RocksDB crash test or throughput measurement was performed.
- RocksDB documentation and code share a project owner. WiscKey supplies historical comparison, not independent validation of the later implementation.