Skip to content

Conversation

sakthivelmanii
Copy link
Contributor

Read-Only, Read-Write and Partition Ops transactions now use a single multiplexed session, instead of a session from the session pool. Multiplexed sessions can handle any number of queries of read-only, read-write and partition ops transactions at the same time.

The use of multiplexed sessions can be disabled for read-only, read-write and partition-ops transactions by setting the environment variables.

GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS=false
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW=false
GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_PARTITIONED_OPS=false

See https://cloud.google.com/spanner/docs/sessions#multiplexed_sessions for more background information about multiplexed sessions.

@sakthivelmanii sakthivelmanii requested review from a team as code owners August 19, 2025 05:23
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Aug 19, 2025
@sakthivelmanii sakthivelmanii added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 19, 2025
@sakthivelmanii sakthivelmanii force-pushed the enable_multiplex_session_for_all_ops branch from 278ad22 to 8a84301 Compare August 19, 2025 05:45
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 19, 2025
@sakthivelmanii sakthivelmanii added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 19, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 19, 2025
@sakthivelmanii sakthivelmanii force-pushed the enable_multiplex_session_for_all_ops branch 14 times, most recently from 4e18cb2 to 602c1ab Compare August 25, 2025 17:40
@sakthivelmanii sakthivelmanii force-pushed the enable_multiplex_session_for_all_ops branch 4 times, most recently from 2602793 to bff338b Compare August 26, 2025 09:48
@sakthivelmanii sakthivelmanii force-pushed the enable_multiplex_session_for_all_ops branch 3 times, most recently from 39d93a4 to fba8cbc Compare August 26, 2025 18:26
@sakthivelmanii sakthivelmanii force-pushed the enable_multiplex_session_for_all_ops branch 3 times, most recently from 34117cd to 9dc3bf8 Compare August 27, 2025 17:04
@sakthivelmanii sakthivelmanii force-pushed the enable_multiplex_session_for_all_ops branch 2 times, most recently from eddd9bd to d7de94a Compare August 27, 2025 18:13
@sakthivelmanii sakthivelmanii force-pushed the enable_multiplex_session_for_all_ops branch from d7de94a to d6a3721 Compare August 27, 2025 18:20
@rahul2393 rahul2393 merged commit 0491ba6 into main Aug 28, 2025
12 checks passed
@rahul2393 rahul2393 deleted the enable_multiplex_session_for_all_ops branch August 28, 2025 05:12
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 Spanner API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants