Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

skuruppu
Copy link
Contributor

Supports setting the read lock mode in R/W transactions at both the client level and at an individual transaction level.

This change allows for the read lock mode to be set independently or alongside the transaction isolation level selection. Therefore transactions can be run in the following modes:

  • Serializable isolation with pessimistic locking (default isolation level and locking mode in Spanner)
  • Serializable isolation with optimistic locking
  • Repeatable read isolation with optimistic locking (default locking mode for Repeatable Read isolation)
  • Repeatable read isolation with pessimistic locking

If no isolation level is selected, Spanner transactions default to Serializable isolation with pessimistic locking. If no read lock mode is chosen for Repeatable Read isolation, transactions default to optimistic locking.

Supports setting the read lock mode in R/W transactions at both the client level and at an individual transaction level.
@skuruppu skuruppu requested review from a team as code owners August 20, 2025 06:53
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Aug 20, 2025
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner API. label Aug 20, 2025
@rahul2393 rahul2393 merged commit ee24c6e into googleapis:main Aug 26, 2025
19 checks passed
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/python-spanner API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants