Oh sorry.

If your joinedload is working , you'll see:

    SELECT data
    SELECT TRUE; -- just joinedloaded
    SELECT TRUE; -- about to touch `bars
    SELECT TRUE; -- touched `bars

if you are not eager-loading, then you'll see something like:

    SELECT data
    SELECT TRUE; -- just joinedloaded
    SELECT TRUE; -- about to touch `bars
    SELECT data
    SELECT TRUE; -- touched `bars

this line:
     
    bars = list(foo.bars)

simply accesses the foo.bars property.  if it has been eagerloaded, no new 
sql is required.  if it is still lazily-loaded, then the ORM will have to 
talk to the database to fetch the data.




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

Reply via email to