Elevator icon indicating copy to clipboard operation
Elevator copied to clipboard

Implement sub-databases as namespaces

Open oleiade opened this issue 12 years ago • 2 comments

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.

oleiade avatar Apr 30 '13 09:04 oleiade

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

wbolster avatar Jul 19 '13 21:07 wbolster

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:

oleiade avatar Jul 31 '13 08:07 oleiade