diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-02-17 12:29:07 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2011-02-17 12:36:02 +0000 |
| commit | 63ac6cdde5f1f664ab28c7d4cbe4825b12441bb2 (patch) | |
| tree | 1b9a47abcdc08d12b9cf7105a40ab2695dff9658 /psycopg/cursor.h | |
| parent | 7756eae57346c547b6ac25e30b591411302da956 (diff) | |
| download | psycopg2-63ac6cdde5f1f664ab28c7d4cbe4825b12441bb2.tar.gz | |
Added cursor.itersize
The value is used to control the number of records to fetch per network
roundtrip in named cursors iteration. Used to avoid the inefficient
arraysize default of 1 without giving this value the magic meaning of
2000.
Diffstat (limited to 'psycopg/cursor.h')
| -rw-r--r-- | psycopg/cursor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/psycopg/cursor.h b/psycopg/cursor.h index 92a122b..395c561 100644 --- a/psycopg/cursor.h +++ b/psycopg/cursor.h @@ -45,6 +45,7 @@ typedef struct { long int rowcount; /* number of rows affected by last execute */ long int columns; /* number of columns fetched from the db */ long int arraysize; /* how many rows should fetchmany() return */ + long int itersize; /* how many rows should iter(cur) fetch in named cursors */ long int row; /* the row counter for fetch*() operations */ long int mark; /* transaction marker, copied from conn */ |
