Avoid double looping in autorecord find_all
Bug #640803 reported by
wouter bolsterlee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Anewt |
Fix Released
|
Wishlist
|
wouter bolsterlee |
Bug Description
Deep inside AnewtAutorecord
$rows = $connection-
return AnewtAutoRecord
Both lines of code cause a full looping through the result rows, while object creation could also be done in one pass (i.e. pipelining) by not using the _fetch_all() convenience API from AnewtDatabaseCo
To post a comment you must log in.
1788 Wouter Bolsterlee 2010-10-02
[autorecord] Avoid double loops when instantiating objects
Don't use AnewtDatabaseCo nnection convenience API, but build
AutoRecord instances while looping through the result set.
Fixes lp:640803.