You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add background info for session pool (#2498)
* docs: add background info for session pool Adds additional technical background information on how the session and and channel pools work. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: add code formatting --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .readme-partials.yaml
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,15 @@ custom_content: |
41
41
42
42
In [DatabaseSelect.java](https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples/src/main/java/com/google/cloud/examples/spanner/snippets/DatabaseSelect.java) we put together all the code shown above in a single program.
43
43
44
+
## Session Pool
45
+
46
+
The Cloud Spanner client maintains a session pool, as sessions are expensive to create and are
47
+
intended to be long-lived. The client automatically takes a session from the pool and uses this
48
+
executing queries and transactions.
49
+
See [Session Pool and Channel Pool Configuration](session-and-channel-pool-configuration.md)
50
+
for in-depth background information about sessions and gRPC channels and how these are handled in
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,15 @@ try {
147
147
148
148
In [DatabaseSelect.java](https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-examples/src/main/java/com/google/cloud/examples/spanner/snippets/DatabaseSelect.java) we put together all the code shown above in a single program.
149
149
150
+
## Session Pool
151
+
152
+
The Cloud Spanner client maintains a session pool, as sessions are expensive to create and are
153
+
intended to be long-lived. The client automatically takes a session from the pool and uses this
154
+
executing queries and transactions.
155
+
See [Session Pool and Channel Pool Configuration](session-and-channel-pool-configuration.md)
156
+
for in-depth background information about sessions and gRPC channels and how these are handled in
0 commit comments