Skip to content

Commit e0b9f2f

Browse files
feat: Use multiplex sessions for RW and Partition Ops
1 parent a7729e1 commit e0b9f2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,13 +619,13 @@ public static class Builder {
619619
// client.
620620
// Set useMultiplexedSessionForRW to true to make multiplexed session for RW operations the
621621
// default.
622-
private boolean useMultiplexedSessionForRW = false;
622+
private boolean useMultiplexedSessionForRW = true;
623623

624624
// This field controls the default behavior of session management for Partitioned operations in
625625
// Java client.
626626
// Set useMultiplexedSessionPartitionedOps to true to make multiplexed session for Partitioned
627627
// operations the default.
628-
private boolean useMultiplexedSessionPartitionedOps = false;
628+
private boolean useMultiplexedSessionPartitionedOps = true;
629629

630630
private Duration multiplexedSessionMaintenanceDuration = Duration.ofDays(7);
631631
private Clock poolMaintainerClock = Clock.INSTANCE;

0 commit comments

Comments
 (0)