{
  "slug": "rocksdb",
  "term": "RocksDB",
  "aliases": [
    "RocksDB storage engine"
  ],
  "definition": "RocksDB is an embedded key-value storage engine that organizes persistent data using a log-structured merge-tree.",
  "note": "Scope: Applications use RocksDB as a library; the engine is not itself a standalone database server. Its LSM design trades read, write and space amplification rather than guaranteeing one performance profile. [readme]\n\nDurability: With WAL enabled and automatic WAL flushing, a non-sync write may remain in operating-system memory. manual_wal_flush=true can instead retain log data in RocksDB's own buffer; disableWAL=true omits that log record. A successful write therefore needs its logging, buffering and synchronization policy to be interpreted. [options]\n\nBoundary: In v10.10.1, sync=true together with disableWAL=true is rejected with InvalidArgument. A later WAL-enabled synchronous write does not supply an earlier unlogged update that is still only in a memtable; an independent memtable flush may persist it. These are source-reviewed contracts, not a power-loss experiment or a claim about the latest release. [write-path] [faq]\n\nBlobDB exception: the experimental Blob Direct Write v1 option in v11.8.1 replaces qualifying values with BlobIndex references before WAL/memtable insertion. Its documented recovery scope excludes still-active direct-write blob files: they must first become manifest-visible through flush/SST creation. Do not extend the ordinary value-in-WAL argument above to this opt-in mode. [blob-direct-options]",
  "related": [
    "lsm-tree",
    "memtable",
    "sstable",
    "write-ahead-log",
    "compaction",
    "zenfs",
    "rocksdb-column-family",
    "rocksdb-atomic-flush",
    "rocksdb-checkpoint",
    "rocksdb-backup-engine",
    "bluestore",
    "bluefs",
    "blobdb"
  ],
  "citations": [
    {
      "id": "readme",
      "title": "RocksDB v10.10.1 README: library identity and LSM design.",
      "url": "https://github.com/facebook/rocksdb/blob/4595a5e95ae8525c42e172a054435782b3479c57/README.md",
      "accessed": "2026-11-29"
    },
    {
      "id": "options",
      "title": "RocksDB v10.10.1 options.h: manual_wal_flush and WriteOptions.",
      "url": "https://github.com/facebook/rocksdb/blob/4595a5e95ae8525c42e172a054435782b3479c57/include/rocksdb/options.h",
      "accessed": "2026-11-29"
    },
    {
      "id": "write-path",
      "title": "RocksDB v10.10.1 DBImpl::WriteImpl: incompatible sync/disableWAL options.",
      "url": "https://github.com/facebook/rocksdb/blob/4595a5e95ae8525c42e172a054435782b3479c57/db/db_impl/db_impl_write.cc#L409",
      "accessed": "2026-11-29"
    },
    {
      "id": "faq",
      "title": "RocksDB FAQ: a synchronous write after a WAL-disabled update.",
      "url": "https://github.com/meta/rocksdb/wiki/RocksDB-FAQ",
      "accessed": "2026-11-29"
    },
    {
      "id": "hesela",
      "title": "Hesela: RocksDB WAL sync, memtable flush and recovery boundaries.",
      "url": "https://hesela.com/analyses/rocksdb-wal-flush-manifest-boundaries/",
      "accessed": "2026-11-29"
    },
    {
      "id": "blob-direct-options",
      "title": "RocksDB v11.8.1: advanced_options.h, experimental direct-write v1 contract.",
      "url": "https://github.com/facebook/rocksdb/blob/abeebd9630f11bd08c28b7bd43c7bdfc62050654/include/rocksdb/advanced_options.h#L1202-L1257",
      "accessed": "2026-12-02"
    }
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-12-02"
}
