From: SourceForge.net <no...@so...> - 2005-02-20 05:12:44
|
Patches item #996442, was opened at 2004-07-23 06:18 Message generated for change (Settings changed) made by ballie01 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=316528&aid=996442&group_id=16528 Category: None Group: None Status: Pending >Resolution: Fixed Priority: 5 Submitted By: Michael Howitz (icemac) Assigned to: Nobody/Anonymous (nobody) Summary: PgSQL.Cursor.__fetchManyRows shoud use xrange Initial Comment: In PgSQL.Cursor.__fetchManyRows range(count) may generate a huge list, if a large count is used. (This happens in combination with ZpyPgSQLDA.db.DB.query with no max_rows set (Its default is 9999999!)) Maybe using xrange can help, it speeds things daratically up. (see also http://www.python.org/doc/current/lib/built-in-funcs.html#l2h-73 ) So I attached a patch to use xrange instead of range. ---------------------------------------------------------------------- Comment By: Billy G. Allie (ballie01) Date: 2005-02-19 23:53 Message: Logged In: YES user_id=8500 Applied patch ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=316528&aid=996442&group_id=16528 |