Skip to content
This repository was archived by the owner on May 4, 2025. It is now read-only.

Optimize record iterator#3

Open
stevecassidy wants to merge 3 commits intomainfrom
optimize-record-iterator
Open

Optimize record iterator#3
stevecassidy wants to merge 3 commits intomainfrom
optimize-record-iterator

Conversation

@stevecassidy
Copy link
Contributor

Attempt to make the notebook record iterator run faster when downloading attachments. Previous implementation does many queries to the DB for each record which seems to be slow. Here we try to do batch downloads of records, revisions, avps and attachments via an index.

Hit a roadblock when I found that for a remote db, PouchDB doesn't get the attachments in a query via an index, although it does for an in memory db.

Signed-off-by: Steve Cassidy <steve.cassidy@mq.edu.au>
Signed-off-by: Steve Cassidy <steve.cassidy@mq.edu.au>
Signed-off-by: Steve Cassidy <steve.cassidy@mq.edu.au>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant