Roundup Tracker - Issues

Message3956

Author schlatterbeck
Recipients rawler, richard, schlatterbeck, stefan
Date 2010-01-04.10:33:00
Message-id <20100104103258.GB24975@runtux.com>
In-reply-to <4B40CF9D.5010903@codesourcery.com>
On Sun, Jan 03, 2010 at 05:10:58PM +0000, Stefan Seefeld wrote:
> 
> On 01/03/2010 10:13 AM, Ralf Schlatterbeck wrote:
> 
> > So I guess my example can really profit from using an iterator --
> > especially since the whole database is in RAM because I configured the
> > PostgreSQL cache large enough. In these cases the database thread and
> > the roundup thread consuming the query data can run in parallel.
> 
> I'd suggest to create a new issue about the iterator, so we can keep 
> this one for the fused SQL queries idea I submitted initially.

Why not make the initial implementation of `getnodes` an iterator? Your
initial use-case in msg3565 is nicely implemented using an iterator. And
if we really have a case where we want the nodes to be materialized we
can always write
nodes = [db.someclass.getnodes (...)]

or am I missing something?

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  Fax:   +43/2243/26465-23
Reichergasse 131                        www:   http://www.runtux.com
A-3411 Weidling                         email: office@runtux.com
osAlliance member                       email: rsc@osalliance.com
History
Date User Action Args
2010-01-04 10:33:00schlatterbecksetrecipients: + schlatterbeck, richard, stefan, rawler
2010-01-04 10:33:00schlatterbecklinkissue2550514 messages
2010-01-04 10:33:00schlatterbeckcreate