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

fix: lower batch size on BulkWriter retry #1549

Merged
merged 2 commits into from
Jun 30, 2021
Merged

Conversation

thebrianchen
Copy link

@thebrianchen thebrianchen commented Jun 30, 2021

Lowering batch size to 10 when retrying failed write in order to guarantee the batch is under 10MiB, as part of the plan outlined in go/bulkwriter-throughput. Will confirm with batchik@ about 9 vs 10 batch size before merging.

Storing maxBatchSize in BulkCommitBatch for easier tracking.

@thebrianchen thebrianchen self-assigned this Jun 30, 2021
@thebrianchen thebrianchen requested review from a team as code owners June 30, 2021 16:10
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/nodejs-firestore API. label Jun 30, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 30, 2021
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is much simpler than anticipated. Thanks!

@thebrianchen thebrianchen merged commit 26d480b into master Jun 30, 2021
@thebrianchen thebrianchen deleted the bc/bulk-smaller-batch branch June 30, 2021 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/nodejs-firestore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants