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

feat: auto_batch_dml connection property #1787

Merged
merged 2 commits into from
Oct 12, 2024
Merged

Conversation

olavloite
Copy link
Collaborator

The auto_batch_dml connection property enables automatic batching of DML statements, for example when using Hibernate. When this connection variable has been enabled, a JDBC connection will automatically buffer DML statements in memory, and send all buffered DML statements to Spanner as one batch when a query is executed or when the transaction is committed. This can significantly reduce the number of round-trips to Spanner, especially when using an ORM like Hibernate that generates many small single-row DML statements.

The `auto_batch_dml` connection property enables automatic batching of
DML statements, for example when using Hibernate. When this connection
variable has been enabled, a JDBC connection will automatically buffer
DML statements in memory, and send all buffered DML statements to
Spanner as one batch when a query is executed or when the transaction
is committed. This can significantly reduce the number of round-trips
to Spanner, especially when using an ORM like Hibernate that generates
many small single-row DML statements.
@olavloite olavloite requested review from a team as code owners October 12, 2024 07:53
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Oct 12, 2024
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Oct 12, 2024
@olavloite olavloite merged commit 8aa0edb into main Oct 12, 2024
21 checks passed
@olavloite olavloite deleted the document-auto-batch-dml branch October 12, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant