Skip to content

Conversation

@olavloite
Copy link
Collaborator

Removes the SessionPool and related classes and deprecates the SessionPoolOptions class. This simplifies large parts of the code, as the only possible code path is the use of multiplexed sessions.

After this change, the client does not create and initialize a session pool when it is created. This means that the number of sessions that is observed on Spanner will be much lower, as each DatabaseClient only creates 1 multiplexed session.

Removes the SessionPool and related classes and deprecates the SessionPoolOptions class.
This simplifies large parts of the code, as the only possible code path is the use of
multiplexed sessions.
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. api: spanner Issues related to the googleapis/java-spanner API. labels Oct 31, 2025
@generated-files-bot
Copy link

Warning: This pull request is touching the following templated files:

  • .github/workflows/ci.yaml

@olavloite olavloite force-pushed the remove-session-pool branch from b89fd14 to 579abba Compare October 31, 2025 13:20
@olavloite olavloite marked this pull request as ready for review October 31, 2025 13:20
@olavloite olavloite requested review from a team as code owners October 31, 2025 13:20
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/java-spanner API. size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants