Git Product home page Git Product logo

cbforest's Introduction

CBForest is a C++ wrapper around ForestDB, a new key-value storage engine based on a hierarchical B+-tree trie data structure. ForestDB is similar in functionality to the CouchStore engine that currently underlies Couchbase Server, but it should be faster and more space-efficient, especially on solid-state disks (SSDs). CBForest adds an idiomatic object-oriented C++ API for ForestDB, and also some new functionality (see below.)

The immediate purpose of CBForest is to serve as the storage engine of the next generation of Couchbase Lite (on all platforms), replacing SQLite. But it may find other uses too, perhaps for applications that want a fast minimalist data store but don't need any of the fancy features of Couchbase Lite like replication.

Features

  • ForestDB features, available via an idiomatic C++ API:

    • Fast key-value storage, where keys and values are both opaque blobs.
    • Extremely robust append-only file format with write-ahead log.
    • Reads are never blocked, even while writes or transactions are in progress.
    • Iteration by key order.
    • Iteration by sequence, reflecting the order in which changes were made to the database. (This is useful for tasks like updating indexes and replication.)
  • New features implemented by CBForest:

    • Optional multi-version document format that keeps a revision tree of the history of each document (as in Couchbase Lite or CouchDB.)
    • Index API that uses a database as an index of an external data set.
    • Map-reduce indexes that update incrementally as documents are changed in the source DB (as in Couchbase Lite or CouchDB.)
    • Support for JSON-compatible structured keys in indexes, sorted according to CouchDB's JSON collation spec.

Platform Support

CBForest is intended to run on Mac OS, iOS, Android, various other flavors of Unix, and Windows.

However, it's currently [as of July 2014] only been used or tested on Mac OS and iOS, so there might be inadvertent platform dependencies. Please report any issues you find on other platforms.

License

Like all Couchbase source code, this is released under the Apache 2 license.

cbforest's People

Contributors

borrrden avatar jpetso avatar lordkev avatar pasin avatar snej avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.