Repository navigation
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:
-
Support 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.)
-
Support 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, than 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.
-
Solid-State Drive (SSD) optimization
-
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.