There are 2 quick / dirty ways that I use: 1. change between joinedload and subqueryload ; if it is loading correctly, you'll see different sql generated
2. cheat, and use SQL comments to push in some logging data into your SQL log. foo = dbSession.query(model.Foo).options(joinedload("bars")).one() logline = dbSession.query("SELECT TRUE; -- just joinedloaded") logline = dbSession.query("SELECT TRUE; -- about to touch `bars`") bars = list(foo.bars) logline = dbSession.query("SELECT TRUE; -- touched `bars`") It's impossible to tell if something is being eagerloaded or not from the SQL alone; you'd have to share the SqlAlchemy queries too. -- 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 sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.