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

Is it normal that Doc.find({}) is that slow ? #52

Open
martpie opened this issue Aug 29, 2016 · 3 comments
Open

Is it normal that Doc.find({}) is that slow ? #52

martpie opened this issue Aug 29, 2016 · 3 comments

Comments

@martpie
Copy link

martpie commented Aug 29, 2016

Hello !

I recently switched from NeDB to LinvoDB3 for Museeks, but I have some trouble with database initial load speed.

I know why NeDB is ultra-fast, and I know Linvo is not meant to be as fast as NeDB, but I got these results (3500 documents):

Track.find({}; (err, res) => {});

Type Size Load speed
Library with covers ≈ 1GB ≈ 20'000ms
Library without covers 2.7MB 2461.152ms

It seems like

  • the size of a document influences load speed a bit
  • number of documents influences load speed a lot

I'm using level-js

Is this the expected behavior/speed ? or have I done something wrong ?
Would levelDB be faster ?

@Ivshti
Copy link
Owner

Ivshti commented Aug 29, 2016

Yes, it would be. Which browser are you testing in? Safari is extremely slow with indexeddb, chrome are faster. Can you try leveldb?

@YurySolovyov
Copy link
Contributor

@Ivshti Museeks is built with Electron 1.4 ATM

@YurySolovyov
Copy link
Contributor

@Ivshti is that Linvo or level-js who serializes docs into JSON string?

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

3 participants