Skip to content

Navigation Menu

Sign up

Future Work

Chiyoung Seo edited this page Jul 24, 2014 · 8 revisions

We plan to work on various new features and add them to ForestDB in the upcoming releases. The following list describes some of those new features briefly:

  • Solid-State Drive (SSD) optimization

    • Leverage async IO library (e.g., libaio) to exploit the parallel IO capabilities provided by SSD drives
      • This would be quite useful in querying secondary indexes when items satisfying a query predicate are located in multiple blocks.
    • Volume manager inside ForestDB
      • The volume manager runs on unformatted SSD drives and maintains the list of blocks used by each database file and garbage-collects invalid blocks to the free block list.
      • This allows us to bypass the entire OS file system stack and perform the raw block I/O operations on the SSD drives for better I/O performance with ForestDB's buffer cache.
    • Lightweight and I/O efficient compaction
      • If ForestDB manages the list of blocks used by each database file through its own volume manager (as explained above), the compaction can be simply performed by mapping the valid blocks of the old file to a new file and moving stale blocks of the old file to the free block list.
  • Multiple key-value instances in a single ForestDB file

    • A single ForestDB file can only maintain a single key-value instance at this moment. In some use cases, applications need to create lots of key-value instances and read/write items from/to those instances. If we create a separate database file for each key-value instance, there will be lots of files to be opened, which causes too many file descriptors to be used, or we should open / close each file repeatedly, which incurs lots of additional overhead (e.g.,open / close system call, reading a database header, reading btree nodes again, etc.).
  • Reduce feature

    • There are many use cases where a reduce feature would be quite useful and provide the scalable performance for reduced queries. For this, we need to extend the ForestDB's HB+-Trie, so that each B+ tree can store intermediate reduce values internally and the root node in the top B+ tree in HB+-Trie can have a final reduce value.
  • Database encryption

    • Some applications (e.g., healthcare, finance) want to be able to encrypt their databases. The desired behavior is that a symmetric key would be provided when opening the database, and all file I/O operations would be encrypted using that key (transparently, without affecting accesses via public APIs.)
  • Pause/resume of compaction

    • When there are a lot of documents (e.g., billions of documents) in a ForestDB instance, a compaction task can take very long time; from tens of minutes to several hours. If ForestDB shuts down during the compaction, then all new documents should be moved from the new (partially compacted) file to the old file upon the next open operation, and we have to start over the compaction again. This can be significant unnecessary overhead. If ForestDB supports pause/resume of compaction, then this unnecessary overhead can be easily avoided.
  • Reverse iteration through an iterator

    • ForestDB only supports the forward iteration through an iterator at this moment, and needs to extend the iterator implementation to support the reverse iteration.

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /