Report for slow logs: slowquery.log 1.59k queries total, 69 unique Sorted by 't_sum' Grand Totals: Time 109 s, Lock 0 s, Rows sent 142.02k, Rows Examined 21.26M ______________________________________________________________________ 001 ___ Count : 26 (1.64%) Time : 6.121513 s total, 235.443 ms avg, 202.917 ms to 311.527 ms max (5.63%) 95% of Time : 5.538256 s total, 230.761 ms avg, 202.917 ms to 271.056 ms max Lock Time (s) : 2.407 ms total, 93 µs avg, 84 µs to 139 µs max (1.55%) 95% of Lock : 2.152 ms total, 90 µs avg, 84 µs to 99 µs max Rows sent : 0 avg, 0 to 0 max (0.00%) Rows examined : 153.68k avg, 153.67k to 153.69k max (18.79%) Database : Users : root@localhost 127.0.0.1 : 100.00% (26) of query, 100.00% (1586) of all users
Query abstract: SET timestamp=N; SELECT order_pid FROM wfc_delivery WHERE ( order_pid IN (S1) ) AND ( status IN (S3) ) GROUP BY order_pid;
Query sample: SET timestamp=1387964641; SELECT `order_pid` FROM `wfc_delivery` WHERE ( `order_pid` IN ('8831') ) AND ( `status` IN ('1','4','24') ) GROUP BY order_pid;
选项说明: 总查询次数 (queries total), 去重后的sql数量 (unique) 输出报表的内容排序(sorted by) 最重大的慢sql统计信息, 包括 平均执行时间, 等待锁时间, 结果行的总数, 扫描的行总数. Count, sql的执行次数及占总的slow log数量的百分比. Time, 执行时间, 包括总时间, 平均时间, 最小, 最大时间, 时间占到总慢sql时间的百分比. 95% of Time, 去除最快和最慢的sql, 覆盖率占95%的sql的执行时间. Lock Time, 等待锁的时间. 95% of Lock , 95%的慢sql等待锁时间. Rows sent, 结果行统计数量, 包括平均, 最小, 最大数量.