On Thu, Sep 28, 2006 at 06:45:46PM +0200, Didrik Pinte wrote:
> # SQLOBJECT DEFAULT TEST
> 
> sqlobject_start = time.time()
> res = rawdata.select()
> sqlobject_valc = 0
> for val in res:
>     sqlobject_valc += 1
>     pass
> sqlobject_end = time.time()

   I don't see any .lazyIter() here.

> The problem is not really the execution time but the memory consumption.
> Isn't there a way of getting kind of iterator using the sqlobject
> syntax ? 

   .select() returns a SelectResults object which *is* an iterator. But
default .__iter__() draws all rows at once. .lazyIter() draws rows in
batches.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to