there's a modern recipe at: http://www.sqlalchemy.org/trac/wiki/UsageRecipes/Profiling
but yeah, thats ConnectionEvents. what's the issue there, you need how long result fetching takes ? On Sep 17, 2013, at 2:28 PM, Jonathan Vanasco <jonat...@findmeon.com> wrote: > is there a currently recommended approach ? > > looking through the backcatalog of q&a (from 2008-2010) , it seems like the > options are: > > - manually look at debug data , subtract timestamps for a general idea > - write something with ConnectionEvents ( originally ConnectionProxy ) > > for now, i just want to log the duration of sqlalchemy requesting & getting a > result. i tried patching base.py , but the numbers I got all referred to > emitting sql, not the sql operation. > > i know i could get this from a database log, but 98% of my current profiling > is within the python logger - so i'd like to keep this all consolidated. > > -- > 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