I tried to come up with a number of topics for this post, but none seemed to really convey what I really feel.. And really this blog is about all of them..
- A look at PERFORMANCE_SCHEMA.STAGES and PERFORMANCE_SCHEMA.STATEMENTS
- Graphing MySQL Statement Execution
- A MySQL visual EXPLAIN plan with PERFORMANCE_SCHEMA
- Tracing Sessions with PERFORMANCE_SCHEMA
If that doesn’t whet your appetite (and trust me, I need to, this post is long, but I feel is worth reading all the way to the end), then let me start out by asking the question:
Wouldn’t you like to be able to trace what a SQL statement did, either in the same or another session, on a production instance, after the fact? Wouldn’t you like to know where all of it’s time was spent, and some statistics on what it was doing specifically?
I know, …
[Read more]