Skip to content
Advertisement

Interpreting mysqldumpslow results

I have modified mysql config to log slow queries

JavaScript

And interpreting them with mysqldumpslow. One of the results is as follows

JavaScript

Question: what do the numbers in brackets mean?

The query does take about 0.21s when run with mysql (or via mysql GUI’s); however when making a request to a page the time span is more like 5 seconds.

Extra read: mysqldumpslow: What does these fields indicate..?

Advertisement

Answer

It seems that the number in brackets (5s) is the average Time multiplied by Count and floored.

JavaScript

The same applies to rows

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement