Skip to content

Commit 955ef7e

Browse files
Improved session pooling documentation.
1 parent 39ff9fc commit 955ef7e

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

doc/src/module.rst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,19 @@ Module Interface
179179
edition=None, timeout=0, waitTimeout=0, maxLifetimeSession=0, \
180180
sessionCallback=None)
181181

182-
Create and return a :ref:`session pool object <sesspool>`. This
183-
allows for very fast connections to the database and is of primary use in a
184-
server where the same connection is being made multiple times in rapid
185-
succession (a web server, for example).
182+
Create and return a :ref:`session pool object <sesspool>`.
183+
Connection pooling in cx_Oracle is handled by Oracle's
184+
`Session pooling <https://www.oracle.com/pls/topic/lookup?
185+
ctx=dblatest&id=GUID-F9662FFB-EAEF-495C-96FC-49C6D1D9625C>`__
186+
technology. This allows cx_Oracle applications to support features
187+
like `Application Continuity <https://www.oracle.com/pls/topic/lookup?
188+
ctx=dblatest&id=GUID-A8DD9422-2F82-42A9-9555-134296416E8F>`__.
189+
190+
Session pooling creates a pool of available connections to the
191+
database, allowing applications to acquire a connection very quickly.
192+
It is of primary use in a server where connections are requested
193+
in rapid succession and used for a short period of time, for example in a
194+
web server.
186195

187196
If the connection type is specified, all calls to
188197
:meth:`~SessionPool.acquire()` will create connection objects of that type,

doc/src/session_pool.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ SessionPool Object
88

99
This object is an extension to the DB API.
1010

11+
Connection pooling in cx_Oracle is handled by SessionPool objects.
12+
1113

1214
.. method:: SessionPool.acquire(user=None, password=None, cclass=None, \
1315
purity=cx_Oracle.ATTR_PURITY_DEFAULT, tag=None, matchanytag=False, \

0 commit comments

Comments
 (0)