oleiade / Elevator

Elevator is an open source, on-disk key-value store. Provides high-performance bulk read-write operations over very large datasets while exposing a simple and efficient API.
http://elevator.readthedocs.org
MIT License
71 stars 12 forks source link

Implement sub-databases as namespaces #147

Open oleiade opened 11 years ago

oleiade commented 11 years ago

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 11 years ago

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).

oleiade commented 11 years ago

Hi @wbolster

I saw that feature pass yes, but Elevator has been completely rewritten in Go language, so I'm not using plyvel anymore. I guess I will have to code it myself :D :dancers: