I tend to use standard python profiling for that http://stackoverflow.com/questions/1171166/how-can-i-profile-a-sqlalchemy-powered-application/1175677#1175677
On Sep 25, 2013, at 4:44 PM, Jonathan Vanasco <jonat...@findmeon.com> wrote: > is there a way to time the time spent 'loading' an object from the database ? > > i think there might be a bottleneck in a part of my application that is > related to the object instantiation. > > just to be clear , in this flow: > > a) `query.all()` > b) sqlalchemy compiles query > c) sqlalchemy to db > d) db processing > e) sqlalchemy gets results > f) results turned into ORM objects > > i'm concerned with timing step (f) > > looking at the events system, there seems to be a way to access perobject > events -- but not per query > > -- > 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/groups/opt_out.
signature.asc
Description: Message signed with OpenPGP using GPGMail