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

perf: add option for last_statement - #1313

Merged
olavloite merged 2 commits into
mainfrom
last-statement
Feb 27, 2025
Merged

perf: add option for last_statement#1313
olavloite merged 2 commits into
mainfrom
last-statement

Conversation

@olavloite

Copy link
Copy Markdown
Contributor

Adds an option to indicate that a statement is the last statement in a read/write transaction. Setting this option allows Spanner to optimize the execution of the statement, and defer some validations until the Commit RPC that should follow directly after this statement.

The last_statement option is automatically used by the dbapi driver when a statement is executed in autocommit mode.

Adds an option to indicate that a statement is the last statement in a read/write
transaction. Setting this option allows Spanner to optimize the execution of the
statement, and defer some validations until the Commit RPC that should follow
directly after this statement.
The last_statement option is automatically used by the dbapi driver when a
statement is executed in autocommit mode.
@olavloite
olavloite requested review from a teamFebruary 24, 2025 13:47
@product-auto-labelproduct-auto-labelBot added size: l Pull request size is large. api: spanner Issues related to the googleapis/python-spanner API. labels Feb 24, 2025
@olavloite
olavloite merged commit 19ab6ef into mainFeb 27, 2025
@olavloite
olavloite deleted the last-statement branch February 27, 2025 08:02
@release-pleaserelease-pleaseBot mentioned this pull request Feb 27, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spannerIssues related to the googleapis/python-spanner API.size: lPull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@olavloite@harshachinta