[sqlalchemy] Re: Performance, cd

2009-05-27 Thread Michael Bayer
the Query.all() call only generates a single SQL statement at all times. Its only when you access attributes on individual rows that a second statement would occur. If the multiple queries truly occur within the scope of the all() call, I'd check to see if you have a @reconstructor or

[sqlalchemy] Re: Performance, cd

2009-05-27 Thread Marcin Krol
Hello Mike, Nailed it! Thanks a million, Mike! Michael Bayer wrote: the Query.all() call only generates a single SQL statement at all times. Its only when you access attributes on individual rows that a second statement would occur. If the multiple queries truly occur within the