Message224702
Serhiy,
52 usec/loop doesn't seem like much overhead. This is not 52 usec per row fetched, but just 52 usec per cursor.execute(). An example where >1 row is fetched for each cursor would show this more clearly.
The advantage of namedtuple is that it's a very well-known interface to most Python programmers. Other db-api modules have taken a similar approach; psycopg2 has a dict-like cursor similar to Row, but has added NameTupleCursor in recent versions. (http://initd.org/psycopg/docs/extras.html#namedtuple-cursor) |
|
Date |
User |
Action |
Args |
2014-08-04 09:28:05 | dlenski | set | recipients:
+ dlenski, rhettinger, ghaering, ncoghlan, eric.araujo, BreamoreBoy, petri.lehtinen, serhiy.storchaka, Russell.Sim |
2014-08-04 09:28:05 | dlenski | set | messageid: <1407144485.11.0.209575892296.issue13299@psf.upfronthosting.co.za> |
2014-08-04 09:28:05 | dlenski | link | issue13299 messages |
2014-08-04 09:28:04 | dlenski | create | |
|