anewt-developers team mailing list archive
-
anewt-developers team
-
Mailing list archive
-
Message #00264
[Bug 640803] [NEW] Avoid double looping in autorecord find_all
Public bug reported:
Deep inside AnewtAutorecord::_db_find_sql is this snippet of code:
$rows = $connection->prepare_execute_fetch_all('?raw?', $sql_full);
return AnewtAutoRecord::_db_objects_from_arrays($class, $rows);
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 AnewtDatabaseConnection, and
avoiding _db_objects_from_arrays() (plural) in favor of
_db_object_from_array() (singular)
** Affects: anewt
Importance: Wishlist
Status: New
** Tags: autorecord
--
Avoid double looping in autorecord find_all
https://bugs.launchpad.net/bugs/640803
You received this bug notification because you are a member of Anewt
developers, which is subscribed to Anewt.
Follow ups
References