I observe that the query for a lazy load is generated here:

https://bitbucket.org/zzzeek/sqlalchemy/src/e1d1d999c9a688f4c8dbbe885438c63d6ef494c6/lib/sqlalchemy/orm/strategies.py?at=master#cl-551

I would like to run queries through an EXPLAIN QUERY PLAN or an ANALYZE
programmatically for many properties. Is there an easy way to achieve that?

It looks not since it doesn't like the query is exposed. The only way I'm
aware of to get it is to cause a lazy load and have logging enabled (or add
an event handler which observes the executed statement), but I'd like to
know if there is a way to avoid doing that.

Thanks,

- Peter

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