Skip to content

feat(spanner): support multiplexed session for read-write transactions & partition ops#11615

Merged
rahul2393 merged 3 commits intomainfrom
support-mux
Feb 20, 2025
Merged

feat(spanner): support multiplexed session for read-write transactions & partition ops#11615
rahul2393 merged 3 commits intomainfrom
support-mux

Conversation

@rahul2393
Copy link
Contributor

This PR introduces an environment variable to enable multiplexed sessions for read-write transactions, batch write and partition operations.

This feature is currently opt-in and can be enabled by:

  1. Setting GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW to true to enable for read-write transactions and batch write .
  2. Setting GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_PARTITIONED_OPS to true for partition operations.
  3. Setting GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS to true (mandatory). The GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_FOR_RW or GOOGLE_CLOUD_SPANNER_MULTIPLEXED_SESSIONS_PARTITIONED_OPS setting will have no effect unless this variable is also set to true.

@rahul2393 rahul2393 requested a review from a team as a code owner February 20, 2025 16:32
@rahul2393 rahul2393 requested a review from a team February 20, 2025 16:32
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Feb 20, 2025
@rahul2393 rahul2393 enabled auto-merge (squash) February 20, 2025 16:53
@rahul2393 rahul2393 merged commit 4b40201 into main Feb 20, 2025
9 checks passed
@rahul2393 rahul2393 deleted the support-mux branch February 20, 2025 17:06
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.

2 participants