Advanced MySQL Slow Query Logging Part 3: fine-tuning the logging process

In MySQL by Aurimas Mikalauskas0 Comments

When your car doesn’t start, you don’t just blindly change the battery, starter, fuel pump, spark plugs or all of the above. Instead, you go to your mechanic and ask him to check what is wrong (or you check it yourself if you are the mechanic) and then fix whatever is broken.

Yet very often I see DBAs doing exactly the opposite with their MySQL servers. Rather than assessing what is the server so busy with, they keep changing configuration options until the problem “goes away”. Alternatively, they add more RAM, more CPUs or faster disks, depending on which resources seems to be the most busy at a time. Or they switch to a new server altogether.

MySQL (with a help of some tools) has a really convenient way to analyse the workload and see clearly what exactly is MySQL so busy doing. And even how much improvement you can expect by, say, fixing a specific MySQL query.

This video is the last one in the series of three videos (part 1, part 2) where I have described this process of MySQL Query Review that helps you achieve exactly that. For historical reasons this process is still called Slow query review, but really it is a full query review and it’s where MySQL Consultants start, before they get to the actual MySQL Query Optimization process.

I hope you will find it useful!

P.S. One of the things I mentioned in this video is the Advanced MySQL Slow Query Logging cheat sheet – you can get it here.

Follow Speedemy

I believe that providing the best user experience is the key to business success. Big part of that is making online systems fast, stable and reliable. On Speedemy.com, I am sharing best practices and tested methods that I have used for the last 12 years working as an architect of scalable systems and database performance consultant.

If you too are looking to improve the speed and reliability of your system, let's stay in touch:

No spam, ever! Unsubscribe at any time. Powered by ConvertKit