Skip to content

Commit a56f705

Browse files
Increased default array size to 100 (from 50) to match other drivers.
1 parent 55b0d5d commit a56f705

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

doc/cursor.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Cursor Object
99

1010
This read-write attribute specifies the number of rows to fetch at a time
1111
internally and is the default number of rows to fetch with the
12-
:meth:`~Cursor.fetchmany()` call. It defaults to 50 meaning to fetch 50
12+
:meth:`~Cursor.fetchmany()` call. It defaults to 100 meaning to fetch 100
1313
rows at a time. Note that this attribute can drastically affect the
1414
performance of a query since it directly affects the number of network round
15-
trips that need to be performed. This is the reason for setting it to 50
15+
trips that need to be performed. This is the reason for setting it to 100
1616
instead of the 1 that the DB API recommends.
1717

1818

doc/releasenotes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Version 5.3 (TBD)
5252
24) Dropped support for callbacks on OCI functions.
5353
25) Removed deprecated types UNICODE, FIXED_UNICODE and LONG_UNICODE (use
5454
NCHAR, FIXED_NCHAR and LONG_NCHAR instead).
55+
26) Increased default array size to 100 (from 50) to match other drivers.
5556

5657

5758
Version 5.2.1 (January 2016)

src/Cursor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ static int Cursor_Init(
306306
Py_INCREF(connection);
307307
self->connection = connection;
308308
self->environment = connection->environment;
309-
self->arraySize = 50;
310-
self->fetchArraySize = 50;
309+
self->arraySize = 100;
310+
self->fetchArraySize = 100;
311311
self->bindArraySize = 1;
312312
self->statementType = -1;
313313
self->outputSize = -1;

0 commit comments

Comments
 (0)