I'm going to link the docs for easy reference for any future readers:  
http://docs.sqlalchemy.org/en/latest/orm/self_referential.html?highlight=join_depth#configuring-self-referential-eager-loading

I ended up using something link

session.query(Game).options(joinedload(Game.opp))

because I didn't want to settle on one specific join_depth.

Thank you for your suggestion. I was able to solve my issue because of fit. 
I am very happy with the abstractions available in SQLAlchemy to help with 
eager loading.

-- 
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