@@ -48,7 +48,7 @@ Oracledb Methods
4848 edition=None, tag=None, matchanytag=False, \
4949 config_dir=oracledb.defaults.config_dir, appcontext=[], \
5050 shardingkey=[], supershardingkey=[], debug_jdwp=None, \
51- connection_id_prefix=None, ssl_context=None, handle=0)
51+ connection_id_prefix=None, ssl_context=None, sdu=8192, handle=0)
5252
5353 Constructor for creating a connection to the database. Returns a
5454 :ref: `Connection Object <connobj >`. All parameters are optional and can be
@@ -303,6 +303,17 @@ Oracledb Methods
303303 the default SSLContext object cannot be used. This value is only used in
304304 the python-oracledb Thin mode.
305305
306+ The ``sdu `` parameter is expected to be an integer that returns the
307+ requested size of the Session Data Unit (SDU), in bytes. The value tunes
308+ internal buffers used for communication to the database. Bigger values can
309+ increase throughput for large queries or bulk data loads, but at the cost
310+ of higher memory use. The SDU size that will actually be used is
311+ negotiated down to the lower of this value and the database network SDU
312+ configuration value. See the `SQL*Net documentation <https://www.oracle.
313+ com/pls/topic/lookup?ctx=dblatest&id=GUID-86D61D6F-AD26-421A-BABA-
314+ 77949C8A2B04> `__ for more details. This value is used in both the
315+ python-oracledb Thin and Thick modes. The default value is 8192 bytes.
316+
306317 If the ``handle `` parameter is specified, it must be of type OCISvcCtx\*
307318 and is only of use when embedding Python in an application (like
308319 PowerBuilder) which has already made the connection. The connection thus
@@ -312,7 +323,7 @@ Oracledb Methods
312323
313324 .. versionchanged :: 2.0.0
314325
315- The ``ssl_context `` parameter was added.
326+ The ``ssl_context `` and `` sdu `` parameters were added.
316327
317328.. function :: ConnectParams(user=None, proxy_user=None, password=None, \
318329 newpassword=None, wallet_password=None, access_token=None, host=None, \
@@ -326,7 +337,7 @@ Oracledb Methods
326337 edition=None, tag=None, matchanytag=False, \
327338 config_dir=oracledb.defaults.config_dir, appcontext=[], \
328339 shardingkey=[], supershardingkey=[], debug_jdwp=None, \
329- connection_id_prefix=None, ssl_context=None, handle=0)
340+ connection_id_prefix=None, ssl_context=None, sdu=8192, handle=0)
330341
331342 Contains all the parameters that can be used to establish a connection to
332343 the database.
@@ -546,14 +557,25 @@ Oracledb Methods
546557 the default SSLContext object cannot be used. This value is only used in
547558 the python-oracledb Thin mode.
548559
560+ The ``sdu `` parameter is expected to be an integer that returns the
561+ requested size of the Session Data Unit (SDU), in bytes. The value tunes
562+ internal buffers used for communication to the database. Bigger values can
563+ increase throughput for large queries or bulk data loads, but at the cost
564+ of higher memory use. The SDU size that will actually be used is
565+ negotiated down to the lower of this value and the database network SDU
566+ configuration value. See the `SQL*Net documentation <https://www.oracle.
567+ com/pls/topic/lookup?ctx=dblatest&id=GUID-86D61D6F-AD26-421A-BABA-
568+ 77949C8A2B04> `__ for more details. This value is used in both the
569+ python-oracledb Thin and Thick modes. The default value is 8192 bytes.
570+
549571 The ``handle `` parameter is expected to be an integer which represents a
550572 pointer to a valid service context handle. This value is only used in the
551573 python-oracledb Thick mode. It should be used with extreme caution. The
552574 default value is 0.
553575
554576 .. versionchanged :: 2.0.0
555577
556- The ``ssl_context `` parameter was added.
578+ The ``ssl_context `` and `` sdu `` parameters were added.
557579
558580.. function :: create_pool(dsn=None, pool_class=oracledb.ConnectionPool, \
559581 params=None, min=1, max=2, increment=1, \
@@ -573,7 +595,7 @@ Oracledb Methods
573595 edition=None, tag=None, matchanytag=False, \
574596 config_dir=oracledb.defaults.config_dir, appcontext=[], \
575597 shardingkey=[], supershardingkey=[], debug_jdwp=None, \
576- connection_id_prefix=None, ssl_context=None, handle=0)
598+ connection_id_prefix=None, ssl_context=None, sdu=8192, handle=0)
577599
578600 Creates a connection pool with the supplied parameters and returns the
579601 :ref: `ConnectionPool object <connpool >` for the pool. See :ref: `Connection
@@ -875,24 +897,35 @@ Oracledb Methods
875897 the default SSLContext object cannot be used. This value is only used in
876898 the python-oracledb Thin mode.
877899
900+ The ``sdu `` parameter is expected to be an integer that returns the
901+ requested size of the Session Data Unit (SDU), in bytes. The value tunes
902+ internal buffers used for communication to the database. Bigger values can
903+ increase throughput for large queries or bulk data loads, but at the cost
904+ of higher memory use. The SDU size that will actually be used is
905+ negotiated down to the lower of this value and the database network SDU
906+ configuration value. See the `SQL*Net documentation <https://www.oracle.
907+ com/pls/topic/lookup?ctx=dblatest&id=GUID-86D61D6F-AD26-421A-BABA-
908+ 77949C8A2B04> `__ for more details. This value is used in both the
909+ python-oracledb Thin and Thick modes. The default value is 8192 bytes.
910+
878911 If the ``handle `` parameter is specified, it must be of type OCISvcCtx\*
879912 and is only of use when embedding Python in an application (like
880913 PowerBuilder) which has already made the connection. The connection thus
881914 created should *never * be used after the source handle has been closed or
882915 destroyed. This value is only used in the python-oracledb Thick mode. It
883916 should be used with extreme caution. The default value is 0.
884917
885- .. versionchanged :: 2.0.0
886-
887- The ``ssl_context `` parameter was added.
888-
889918 In the python-oracledb Thick mode, connection pooling is handled by
890919 Oracle's `Session pooling <https://www.oracle.com/pls/topic/lookup?
891920 ctx=dblatest&id=GUID-F9662FFB-EAEF-495C-96FC-49C6D1D9625C> `__ technology.
892921 This allows python-oracledb applications to support features like
893922 `Application Continuity <https://www.oracle.com/pls/topic/lookup?
894923 ctx=dblatest&id=GUID-A8DD9422-2F82-42A9-9555-134296416E8F> `__.
895924
925+ .. versionchanged :: 2.0.0
926+
927+ The ``ssl_context `` and ``sdu `` parameters were added.
928+
896929
897930.. function :: Cursor(connection)
898931
@@ -1014,7 +1047,7 @@ Oracledb Methods
10141047 edition=None, tag=None, matchanytag=False, \
10151048 config_dir=oracledb.defaults.config_dir, appcontext=[], \
10161049 shardingkey=[], supershardingkey=[], debug_jdwp=None, \
1017- connection_id_prefix=None, ssl_context=None, handle=0)
1050+ connection_id_prefix=None, ssl_context=None, sdu=8192, handle=0)
10181051
10191052 Creates and returns a :ref: `PoolParams Object <poolparam >`. The object
10201053 can be passed to :meth: `oracledb.create_pool() `.
@@ -1286,14 +1319,25 @@ Oracledb Methods
12861319 the default SSLContext object cannot be used. This value is only used in
12871320 the python-oracledb Thin mode.
12881321
1322+ The ``sdu `` parameter is expected to be an integer that returns the
1323+ requested size of the Session Data Unit (SDU), in bytes. The value tunes
1324+ internal buffers used for communication to the database. Bigger values can
1325+ increase throughput for large queries or bulk data loads, but at the cost
1326+ of higher memory use. The SDU size that will actually be used is
1327+ negotiated down to the lower of this value and the database network SDU
1328+ configuration value. See the `SQL*Net documentation <https://www.oracle.
1329+ com/pls/topic/lookup?ctx=dblatest&id=GUID-86D61D6F-AD26-421A-BABA-
1330+ 77949C8A2B04> `__ for more details. This value is used in both the
1331+ python-oracledb Thin and Thick modes. The default value is 8192 bytes.
1332+
12891333 The ``handle `` parameter is expected to be an integer which represents a
12901334 pointer to a valid service context handle. This value is only used in the
12911335 python-oracledb Thick mode. It should be used with extreme caution. The
12921336 default value is 0.
12931337
12941338 .. versionchanged :: 2.0.0
12951339
1296- The ``ssl_context `` parameter was added.
1340+ The ``ssl_context `` and `` sdu `` parameters were added.
12971341
12981342.. function :: Time(hour, minute, second)
12991343
0 commit comments