I think Jeremy already implemented logging of query durations: http://groups.google.com/group/sequel-talk/browse_thread/thread/9a4a7f2332289188/f6c6f18db1c7c20c?lnk=gst&q=logging#f6c6f18db1c7c20c
Michael On Sat, May 1, 2010 at 4:28 AM, mooman <[email protected]> wrote: > Hey guys, > > I'm trying to do some query timing. I'm working on rails 3 > integration, and one of the things it's doing is logging all > statements and timing it. Of course, this would need to work with all > adapters. Wondering what would be the best way to do this please. > > I didn't see anything builtin, so i was thinking of extending the > adapter-in-use's #execute method, which would benchmark the super > call. something like the following: > > > http://github.com/mooman/rails3_sequel/blob/master/lib/rails3_sequel/railties/benchmarking_mixin.rb > > this works somewhat, but haven't tested much. im sure there's a better > way. any thoughts? > > thanks everyone! > > -- > You received this message because you are subscribed to the Google Groups > "sequel-talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<sequel-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/sequel-talk?hl=en. > > -- http://codeconnoisseur.org -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
