On Feb 15, 1:48 pm, Mike Judge <[email protected]> wrote:
> ActiveRecord does nice benchmarks in the logs, helping you identify
> slow queries as they happen:
>
>   ArtistEntity Load (0.5ms)   SELECT * FROM `data`.`artists` WHERE
> (`data`.`artists`.`arid` = 'qau')
>
> Any idea how to enable some sort of inline benchmarks in Sequel query
> logs?
>
>   SELECT * FROM `data`.`artists` WHERE (`data`.`artists`.`arid` =
> 'qau')

This requires changing the logging API, which currently logs the SQL
before the query is sent to the database.  The logging API would need
to change to take a block and time the block, then log the SQL and the
time taken after the block returns.

I've been thinking about this for a long time, and still haven't
decided what I want to do.  One of the issues I've been thinking about
is allowing easy access for plugins and extensions to tie into the
system.  I'm not sure of the best way to do that, yet.

Jeremy

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

Reply via email to