Skip to content

Commit 21438cc

Browse files
authored
feat: a single multiplexed session is used for all operations (#2162)
The JDBC driver now uses a single multiplexed session for all operations. This applies to all operations in auto-commit mode, in read-only transactions, and in read/write transactions. One multiplexed session can execute an unlimited number of operations concurrently. Configuring minSessions and maxSessions in the connection URL is therefore no longer needed for workloads that execute a large number of concurrent transactions.
1 parent d0caeb9 commit 21438cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ supported connection properties.
117117
- optimizerVersion (String): Sets the default query optimizer version to use for this connection. See also https://cloud.google.com/spanner/docs/query-optimizer/query-optimizer-versions.
118118

119119
#### Advanced Properties
120-
- minSessions (int): Sets the minimum number of sessions in the backing session pool. Defaults to 100.
121-
- maxSessions (int): Sets the maximum number of sessions in the backing session pool. Defaults to 400.
120+
- DEPRECATED minSessions (int): Sets the minimum number of sessions in the backing session pool. Defaults to 100. This configuration option is no longer needed, as the JDBC driver by default uses a [single multiplexed session for all operations](https://cloud.google.com/spanner/docs/sessions#multiplexed_sessions).
121+
- DEPRECATED maxSessions (int): Sets the maximum number of sessions in the backing session pool. Defaults to 400. This configuration option is no longer needed, as the JDBC driver by default uses a [single multiplexed session for all operations](https://cloud.google.com/spanner/docs/sessions#multiplexed_sessions).
122122
- numChannels (int): Sets the number of gRPC channels to use. Defaults to 4.
123123
- retryAbortsInternally (boolean): The JDBC driver will by default automatically retry aborted transactions internally. This is done by keeping track of all statements and the results of these during a transaction, and if the transaction is aborted by Cloud Spanner, it will replay the statements on a new transaction and compare the results with the initial attempt. Disable this option if you want to handle aborted transactions in your own application.
124124
- autocommit_dml_mode (string): Determines the transaction type that is used to execute

0 commit comments

Comments
 (0)