-
Notifications
You must be signed in to change notification settings - Fork 1
Performance issue querying a view. #4
Comments
The execution time is linear with the number of documents inserted in the DB:
|
Insert execution time doesn't show performance issues, on the contrary, in the WebView it takes 29s while using JXcore only 13s. |
@enricogior The question going through my head is - is this a failure in PouchDB or Leveldown-Mobile? The evidence argues against PouchDB (since the Webview perf is reasonable and the same code should be used in both places) but a quick way to check is to switch the test from using leveldown to using the in memory adapter. See https://pouchdb.com/adapters.html#pouchdb_in_node_js for details but all you should have to do is run 'npm install memdown' in the project and then replace https://github.com/czyzm/TestViewsMobile/blob/211771e1edca9d4db49099135114b20a884e5b29/www/jxcore/app.js#L41 with 'db: require('memdown'),' and then re-run the test. If you see the same bad perf then it's a PouchDB bug and you should bounce it back to me. If you see reasonable perf then that is pretty good evidence that something is wrong with leveldown-mobile. |
These are the test results using MemDown instead of LevelDown-Mobile:
|
@yaronyg we can close this issue in the leveldown-mobile repo and open a new one specific for PouchDB. |
Please test with spidermonkey with JIT on desktop just to see what our perf looks like. Also we should try memdown on desktop with normal node and normal jxcore (v8). |
@czyzm reported the issue:
https://github.com/czyzm/TestViewsMobile
https://github.com/czyzm/TestViewsNode
https://github.com/czyzm/TestViewsJx
The text was updated successfully, but these errors were encountered: