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

Add concurrent batch writer + have browser feature support event use it #898

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

jcscottiii
Copy link
Collaborator

@jcscottiii jcscottiii commented Nov 11, 2024

This change adds a generic concurrent batch writer. This calls the BatchWriteMutations method from #889

Background: During testing in GCP, I saw that each batch write call has a limit but we can increase throughput by running concurrent batch writes.

By default, we set the batch size to 10000 entities and 8 concurrent batch writers. In the future, we can allow spanner clients to configure these based on system settings.

@jcscottiii jcscottiii force-pushed the jcscottiii/concurrent-batch-events branch 2 times, most recently from f48ec6e to 48cd67f Compare November 11, 2024 19:03
@jcscottiii jcscottiii force-pushed the jcscottiii/concurrent-batch-events branch from 48cd67f to 3bd1974 Compare November 11, 2024 20:02
Base automatically changed from jcscottiii/batch-writer to web-features-service-to-job November 11, 2024 21:58
@jcscottiii jcscottiii changed the base branch from web-features-service-to-job to jcscottiii/batch-writer November 11, 2024 22:03
Base automatically changed from jcscottiii/batch-writer to web-features-service-to-job November 12, 2024 14:29
Base automatically changed from web-features-service-to-job to main November 12, 2024 15:03
This change adds a generic concurrent batch writer. During testing in GCP,
I saw that each batch write call has a limit but we can increase throughput
by running concurrent batch writes.

By default, we set the batch size to 10000 entities and 8 concurrent batch writers.
In the future, we can allow spanner clients to configure these based on system settings.
@jcscottiii jcscottiii force-pushed the jcscottiii/concurrent-batch-events branch from 3bd1974 to 7178d69 Compare November 12, 2024 16:19
@jcscottiii jcscottiii added this pull request to the merge queue Nov 12, 2024
Merged via the queue into main with commit c78eb2c Nov 12, 2024
6 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/concurrent-batch-events branch November 12, 2024 17:20
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

Successfully merging this pull request may close these issues.

2 participants