This project is archived and is in readonly mode.
Fetch many records at time in iter() on named cursors
Reported by Daniele Varrazzo | January 13th, 2011 @ 04:10 PM
Using named cursor, records are fetched one at time, with a lot of network roundtrips. A more efficient way of fetching data is using fetchmany.
There may be a default number of record to be fetched internally to make iteration more efficient.
Comments and changes to this ticket
-
Daniele Varrazzo February 5th, 2011 @ 02:39 PM
- State changed from open to resolved
Fixed. Using arraysize to choose how many records to fetch.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.