you'd have to roll that yourself.  Its generally not feasable for  
every relation on an object to be eagerloaded since it would create  
too many joins.


On May 18, 2009, at 11:11 AM, Joril wrote:

>
> Hi all,
> is there a way to request at "query-time" eager loading on every
> relation involved?
>
> For example, given:
> - a class X that as a (normally lazy) relation to Y, which in turn has
> a (normally lazy) relation to Z
> - a query on class X
> is there a way to activate eager loading on every relation of the
> query without knowing beforehand the relations involved?
> Should I use reflection and then use options(eagerload ... ) ) ?
>
> Many thanks!
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to