note also that for self-referntial eager loading you need to specify join_depth:

https://docs.sqlalchemy.org/en/latest/orm/self_referential.html#self-referential-eager-loading

even though it's called "join_depth", it applies to joinedload,
selectinload, subqueryload

On Wed, Jan 23, 2019 at 3:13 PM Jonathan Vanasco <[email protected]> wrote:
>
> Your relationships are set to load via lazyloading ('select') or subqueries 
> ('subquery').
>
> you want to eager load the relationships, which can be done on the mapper or 
> on a specific query.
>
> see https://docs.sqlalchemy.org/en/latest/orm/loading_relationships.html
>
>
> --
> SQLAlchemy -
> The Python SQL Toolkit and Object Relational Mapper
>
> http://www.sqlalchemy.org/
>
> To post example code, please provide an MCVE: Minimal, Complete, and 
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full 
> description.
> ---
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/d/optout.

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to