Skip to content

perf: use last_statement optimization in autocommit #1911

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

Merged
merged 2 commits into from
Feb 21, 2025
Merged

Conversation

olavloite
Copy link
Collaborator

@olavloite olavloite commented Feb 14, 2025

Statements that are executed in autocommit mode should use the last_statement optimization. This reduces the number of validations that Spanner executes after executing the statement, which again reduces the overall execution time of DML statements that are executed in autocommit mode.

@olavloite olavloite requested a review from a team as a code owner February 14, 2025 11:12
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Feb 14, 2025
@olavloite olavloite requested a review from a team as a code owner February 21, 2025 11:16
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: m Pull request size is medium. labels Feb 21, 2025
Statements that are executed in autocommit mode should use the last_statement
optimization.
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: xl Pull request size is extra large. labels Feb 21, 2025
@olavloite olavloite merged commit ce0c422 into main Feb 21, 2025
22 checks passed
@olavloite olavloite deleted the last-statement branch February 21, 2025 12:17
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: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant