A library that provides an embeddable, persistent key-value store for fast storage.
A library that provides an embeddable, persistent key-value store for fast storage.
RocksDB is developed and maintained by Facebook Database Engineering Team. It is built on earlier work on LevelDB by Sanjay Ghemawat ([email protected]) and Jeff Dean ([email protected])
This code is a library that forms the core building block for a fast key-value server, especially suited for storing data on flash drives. It has a Log-Structured-Merge-Database (LSM) design with flexible tradeoffs between Write-Amplification-Factor (WAF), Read-Amplification-Factor (RAF) and Space-Amplification-Factor (SAF). It has multi-threaded compactions, making it especially suitable for storing multiple terabytes of data in a single database.
Start with example usage here: https://github.com/facebook/rocksdb/tree/main/examples
See the github wiki for more explanation.
The public interface is in include/. Callers should not include or
rely on the details of any other header files in this package. Those
internal APIs may be changed without warning.
Questions and discussions are welcome on the RocksDB Developers Public Facebook group and email list on Google Groups.
RocksDB is dual-licensed under both the GPLv2 (found in the COPYING file in the root directory) and Apache 2.0 License (found in the LICENSE.Apache file in the root directory). You may select, at your option, one of the above-listed licenses.
Some remaining costly misses in rocksjni
Java: the misses in rocksdbjni are very expensive
db_bench: `--report_file` keeps only the last benchmark when `--benchmarks` lists several
Error during compaction that produces empty SST file & writes blobs
Java release for 11.11
Secondary open/catch-up can fail if an obsolete SST disappears during MANIFEST replay with unique-ID verification disabled
SstFileManager's reserved disk buffer grows by write_buffer_size on every DB::Open and is never released, so after enough reopens the DB can no longer recover from a NoSpace error
CompactFiles() with allow_trivial_move never releases its SstFileManager space reservation, so compactions are eventually refused as "Compaction too large" on a nearly empty DB
blob_garbage_collection_force_threshold = 0.0 makes the forced-GC predicate a tautology: an idle DB compacts forever
MultiScan: ~ScanIterator() asserts on the status operator++ just threw, so reaching max_prefetch_size aborts instead of raising MultiScanException