Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

perf: use last_statement optimization in autocommit#1911

Merged
olavloite merged 2 commits intomainfrom
last-statement
Feb 21, 2025
Merged

perf: use last_statement optimization in autocommit#1911
olavloite merged 2 commits intomainfrom
last-statement

Conversation

@olavloite
Copy link
Copy Markdown
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 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 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
@olavloite olavloite deleted the last-statement branch February 21, 2025 12:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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