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

Try to improve performance by using LevelDB #54

Open
terrencewwong opened this issue Mar 17, 2017 · 0 comments
Open

Try to improve performance by using LevelDB #54

terrencewwong opened this issue Mar 17, 2017 · 0 comments

Comments

@terrencewwong
Copy link
Owner

Todo: create a file level-queue.js that implements the AsyncQueue<T> Interface and is backed with LevelDB instead of PouchDB. Then try using this queue in learning-strategy.js instead of pouch-queue. My hypothesis is that this will improve performance.

Explanation: The main data structure used to persist data lives in a file pouch-queue.js

I think performance is suffering by using PouchDB since PouchDB is more than just a simple key-value store. PouchDB keeps track of a revision history for any items you store, this functionality is not required, so we can probably use something more light weight.

Behind the scenes, PouchDB is implemented with LevelDB anyways. The node adapter for LevelDB is a project called levelup more info can be found here: https://github.com/Level/levelup

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

No branches or pull requests

1 participant