-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Break down large PouchDB.bulkDocs calls
Large `bulkDocs` calls (i.e. with thousands of documents to save at once) can be the source of crashes. We're not sure if this comes from PouchDB or the logger calls with each document but we've figured that creating smaller batches of documents, logging them all at once and then saving the batch in PouchDB prevents crashes. It should also result in less I/O since we're making a lot less logger calls. To accommodate for these logging changes, we update our `jq` `path` filter so it looks into batches for documents with the expected path.
- Loading branch information
1 parent
74abd19
commit 797af62
Showing
2 changed files
with
64 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters