We have a problem when sometimes we have a lot of load on the MySQL but the cause is a lot of small queries and not slow ones.
I had an idea to use the slow log and log all queries > 0 (Meaning all) for several minutes and then analyze this file with pt-query-digest. This way if there is a very short query that happens a ton of times it will be aggregated and I can find it as the problem (Or the problematic user).
Am I missing something? Does pt-query-digest can do that?
PMM is effectively a constant "pt-query-digest’. It watches your slow log for new queries, processes them live, and updates the dashboards. The UI is far easier than pt-query-digest.