I don’t use many tools in my consulting practice but for the ones
I do, I try to know them as best as I can. I’ve been using
mk-query-digest for almost as long as it exists
but it continues to surprise me in ways I couldn’t imagine it
would. This time I’d like to share a quick tip on how
mk-query-digest allows you to slice your data in a completely
different way than it otherwise would by default.
Disclaimer: this only works when persistent
connections or connection pools aren’t used and is only accurate
when single mysql connection is used during execution of a
request.
If you are seeking to reduce the load on the database server and [as a result] increase response time for some random user requests, you are usually interested in queries that are consuming most MySQL time and that’s how mk-query-digest groups and …
[Read more]