-
Notifications
You must be signed in to change notification settings - Fork 68
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
find action, slow performance #118
Comments
Example i query all docs with data.type == 'supplier'. When I change to plain db.find its still pretty slow. more or less 3s. No idea were I'm doing something wrong. Please advice. If you need more infos or logs I'm happy to provide them. |
I think this is due to the fact that relational-pouch does not create indexes. |
Hello there
I have 200 documents in a remote CouchDB synced down to a local pouchDB with indexDB. 10 of them are of type "articleCategory". If I run this query:
this.db.rel.find('articleCategory',['1','2'....]);
The time it takes to finish is approx 15seconds according to measurements I have done with console.time. I am still a beginner with pouchdb... but I think this should run much faster. Is there something I can check what could be wrong with my code...or the db itself?
I understand that in pouchDB we can work with indexes...but I guess even without an Index it should be faster than 15sec.
Im using the newest version of pouchDB and relational-pouch.
Thanks in advance for any help.
The text was updated successfully, but these errors were encountered: