Re: [sqlalchemy] Lazy load collection from a batch of objects with one query

2014-11-01 Thread Michael Bayer
> On Nov 1, 2014, at 11:53 AM, Kevin S wrote: > > I think I've seen this sort of functionality in Hibernate, where it tries to > optimize if you are going to access some lazy loaded property on a collection > of objects. It can load them in batches, as opposed to one query for every > object.

[sqlalchemy] Lazy load collection from a batch of objects with one query

2014-11-01 Thread Kevin S
I think I've seen this sort of functionality in Hibernate, where it tries to optimize if you are going to access some lazy loaded property on a collection of objects. It can load them in batches, as opposed to one query for every object. So, I'm asking if there is any way to do something like