Skip to content

Conversation

@skuruppu
Copy link
Contributor

Enables optionally setting the read lock mode at a transaction-level to either OPTIMISTIC or PESSIMISTIC. If the read lock mode is not set, Spanner will select the default read lock mode based on the isolation level of the transaction.

  • If the isolation level is SERIALIZABLE, then PESSIMISTIC locking is the default.
  • If the isolation level is REPEATABLE READ, then OPTIMISTIC locking is the default.

Enables optionally setting the read lock mode at a transaction-level to
either `OPTIMISTIC` or `PESSIMISTIC`. If the read lock mode is not set,
Spanner will select the default read lock mode based on the isolation
level of the transaction.
  - If the isolation level is `SERIALIZABLE`, then `PESSIMISTIC` locking
    is the default.
  - If the isolation level is `REPEATABLE READ`, then `OPTIMISTIC`
    locking is the default.
@skuruppu skuruppu requested a review from yfuruyama December 11, 2025 11:39
@yfuruyama
Copy link
Collaborator

Discussed internally and we have decided to close this PR in favor of official Spanner CLI.

@yfuruyama yfuruyama closed this Dec 12, 2025
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