Name Date Size

..11-Jan-20224 KiB

.gitignoreH A D11-Jan-2022359

CMakeLists.txtH A D11-Jan-20228.2 KiB

CodeCoverage.cmakeH A D11-Jan-20226.2 KiB

FindAsyncIOLib.cmakeH A D11-Jan-20221.1 KiB

FindJemalloc.cmakeH A D11-Jan-20221.1 KiB

FindSnappy.cmakeH A D11-Jan-20221.1 KiB

include/libforestdb/H11-Jan-20224 KiB

INSTALL.mdH A D11-Jan-20223.8 KiB

LICENSEH A D11-Jan-202211.1 KiB

MemoryCheck.cmakeH A D11-Jan-20221.9 KiB

option/H11-Jan-20224 KiB

README.mdH A D11-Jan-20222.5 KiB

src/H11-Jan-20224 KiB

tests/H11-Jan-20224 KiB

tools/H11-Jan-20224 KiB

utils/H11-Jan-20224 KiB

1# ForestDB
3ForestDB is a key-value storage engine that is developed by Couchbase Caching and Storage Team, and its main index structure is built from [Hierarchical B+-Tree based Trie](, called HB+-Trie. [HB+-Trie]( was originally presented at [ACM SIGMOD 2011 Programming Contest](, by [Jung-Sang Ahn]( who works at Couchbase Caching and Storage Team.
5Compared with traditional B+-Tree based storage engines, ForestDB shows significantly better read and write performance with less storage overhead. ForestDB has been tested on various server OS environments (Centos, Ubuntu, Mac OS x, Windows) and mobile OSs (iOS, Android).
7ForestDB is currently in [1.0 Beta]( and its GA will be released separately soon. The test coverage stats for ForestDB are available in [ForestDB Code Coverage Report](
9[ForestDB benchmark program]( is also available for performance comparisons with other key-value storage engines.
11Please visit the [ForestDB wiki]( for more details.
13## Main Features
15- Keys and values are treated as an arbitrary binary.
16- Applications can supply a custom compare function to support a customized key order.
17- A value can be retrieved by its sequence number or disk offset in addition to a key.
18- Write-Ahead Logging (WAL) and its in-memory index are used to reduce the main index lookup / update overhead.
19- Multi-Version Concurrency Control (MVCC) support and append-only storage layer.
20- Multiple snapshot instances can be created from a given ForestDB instance to provide different views of database.
21- Rollback is supported to revert the database to a specific point.
22- Ranged iteration by keys or sequence numbers is supported for a partial or full range lookup operation.
23- Manual or auto compaction can be configured per ForestDB database file.
24- Transactional support with read\_committed or read\_uncommitted isolation level.
26## How to build
30## How to Use
32Please refer to [Public APIs]( and tests/fdb\_functional\ in ForestDB source directory.