Something similar was asked on the list within the past 6 months, but I 
couldn't find it.

We found a certain bit of code where one or more relationships were not 
properly eager loaded.  This results in 300 postgres queries on a page 
instead of 30.

The easiest way I could find the problem, would be to append a comment to 
the sql that notes the relationship being accessed.

Does anyone know of a simple way to do that (or if its' possible)?

ie the raw sql would become:

     - SELECT foo FROM bar;
    + SELECT foo FROM bar; -- orm.relationship(Foo.bar)

-- 
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 https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to