This isn’t actually new — it has been out for a few releases. The mk-query-digest tool from Maatkit now outputs information about each class of queries’ variance-to-mean ratio. The new output goes in a couple of places, including perhaps most usefully the “profile” report. Here’s an example from a real MySQL system:
# Profile # Rank Query ID Response time Calls R/Call Apdx V/M Item # ==== ================== ================ ===== ====== ==== ===== ======= # 1 0xBFCF8E3F293F6466 11256.3618 68.1% 78069 0.1442 1.00 0.21 SELECT [redacted] # 2 0x620B8CAB2B1C76EC 2029.4730 12.3% 14415 0.1408 1.00 0.21 SELECT [redacted] # 3 0xB90978440CC11CC7 1345.3445 8.1% 3520 0.3822 1.00 0.00 SHOW STATUS # 4 0xCB73D6B5B031B4CF 1341.6432 8.1% 3509 0.3823 1.00 0.00 SHOW STATUS # MISC 0xMISC 560.7556 3.4% 23930 0.0234 NS 0.0 <17 …[Read more]