Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharded db plugin #126

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open

Sharded db plugin #126

wants to merge 28 commits into from

Conversation

akimra
Copy link
Contributor

@akimra akimra commented Mar 31, 2020

leveldb based customizing plugin, sharding of database

Все методы поделены на их версии основанные на коллбэках и на промисах
синтаксис строки базы в формате протокол-имя базы(которое содержит пути, относительные рабочей директории или абсолютные, к расположениям шардов базы и их максимальный размер):
levelsharded://path1=./db1;size=5000&path2=/root/home/johncena/;size=200000&path3=./lastshard;size=3000
где levelsharded - название протокола
path* - пути
size - максимальный размер шарда по этому пути в байтах
& - разделитель шардов

Также были добавлены тесты нового плагина по аналогии с тестами CustomDB плагина

akimra and others added 28 commits March 29, 2020 17:56
fixed JSON convertion in get method
Added jsdoc comments and fixes of callback methods
Please enter the commit message for your changes. Lines starting
added try-catch blocks for size of storage function
added temporary storage (in-memory) for sharded db plugin to internal…
added promisifyLevel method description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant