I lost count of the number of times I had customers come to me for a regular MySQL performance check-up saying “no, we don’t have any performance problems right now”, just to find they do actually have them, they’re just not aware of it. It’s no big surprise this happens when you’re not using your system as actively as your users are.
So let me share with you one trick I’m using to quickly check if
the system I’m on has any problems that need troubleshooting.
Actually, it’s dead simple. And no, it’s not a slow query log,
it’s Threads_running. Let me show you.
Wait, what’s wrong with the slow query log?
Nothing at all. MySQL’s slow query log is a great tool when you’re looking for slow queries. Or when you’re fishing for things to optimize – either to reduce the resource consumption, or to increase speed for queries you didn’t know are slow.
And it’s …
[Read more]