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

allDocs(startkey, endkey) is slow because it counts every document every time #91

Open
dholth opened this issue Nov 6, 2018 · 0 comments

Comments

@dholth
Copy link

dholth commented Nov 6, 2018

Related to #27 I noticed an allDocs() query from a database with 5500 documents was taking 12 seconds. The result includes the rows fetched and the total number of rows in the database. Removing the total number of rows from the query seemed to speed things up significantly. I think the majority of the time was spend counting the documents I didn't fetch. This slowness affects info() as well. Am debating whether to patch around, fix, or switch to wkwebview + indexeddb on iOS.

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