Updated 1/11/2017
Quite some time ago, when we added the ability to monitor MySQL
query performance statistics from MySQL’s
PERFORMANCE_SCHEMA
, we learned a number of
valuable lessons, still worth sharing. There are definitely right
and wrong ways to do it. If you are looking to the P_S tables for
monitoring MySQL query performance, this blog post might save you
some time and mistakes.
What Is The Performance Schema?
First, a quick introduction. The Performance Schema includes a set of tables that give information on how statements are performing. Most of the P_S tables follow a set of predictable conventions: there’s a set of tables with a limited set of full-granularity current and/or historical data, which is aggregated into tables that accumulate over time. In the case …
[Read more]