-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect Firestore commit write limits
Firestore only allows 500 writes per commit. Prior to this change DeleteRange or purgeExpiredDocuments could result in deleting more than 500 documents and would result in an error. To comply with the limits both DeletRange and purgeExpiredDocuments now call deleteDocuments which properly handles limiting a batch to 500 writes and commiting multiple times until all documents have been removed. Fixes #12007
- Loading branch information
1 parent
73e6242
commit 0d9b63d
Showing
2 changed files
with
181 additions
and
28 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