Implement sub-databases as namespaces
Opened this issue · 2 comments
oleiade commented
In order to reduce unpredictable disk seeks, my intuition is that the ability to create namespaces englobing databases would help.
For example, creating the namespace mynamespace
would actually create a leveldb
backend on the disk with that name. And then creating a db mydb
inside mynamespace
would make every operations over mydb
being written in mynamespace
physical backend with a mydb:
prefix key.
wbolster commented
Note that Plyvel provides transparent support for the 'sub-databases' you describe using its PrefixedDB
API. It handles all operations (get, put, delete, iterators, and so on).