slow

Analyzing a MySQL slow query log with pt-query-digest

There are times when you may notice your MySQL or MariaDB database server getting very slow. Usually, it's a very stressful time, as it means your site or application is also getting very slow since the underlying database is slow. And then when you dig in, you notice that logs are filling up—and in MySQL's case, the slow query log is often a canary in a coal mine which can indicate potential performance issues (or highlight active performance issues).

But—assuming you have the slow query log enabled—have you ever grabbed a copy of the log and dug into it? It can be extremely daunting. It's literally a list of query metrics (time, how long the query took, how long it locked the table), then the raw slow query itself. How do you know which query takes the longest time? And is there one sort-of slow query that is actually the worst, just because it's being run hundreds of times per minute?

Apple's Photos for macOS taking forever to scan photos for People?

I recently migrated around ~50,000 photos and videos from Aperture to Photos (see my blog post on the process), and have also in a short amount of time upgraded my personal and work Mac laptops (both from older MacBook Airs to newer MacBook Pros).

On both of my new laptops—which were at least 3x faster than my older Airs—I noticed that Photos started completely fresh in its photo analysis for the 'People' album that shows everyone's faces. And after three weeks of seeing one of my CPUs stick around 100% all day every day (while plugged in), I started getting sick of this.

I would leave the Mac on all night, and check in the morning, and only 20-30 new faces would be recognized.

macOS Sierra Photos - People Scanned slow and stuck
Some days it seemed it would take forever...

How a Hard Drive Works (in Slow Motion)

I've been subscribed to the Slow-Mo Guys' YouTube Channel for a few months now, ever since I noticed some of their great videos of random things that look quite interesting when recorded at over 1000 fps and played back in slow motion.

Their most recent video, How a Hard Drive Works (in Slow Motion) is one of my favorites, not because it's elaborate or amazing, but it's the first time I've ever actually seen the internals of a hard drive in operation. I've ripped apart a few hard drives in my day (they're built like tanks!), and they're amazing on the inside... but to see how quickly those read heads pop back and forth is amazing.

My Mac is Running Really Slow - Help!

This article will help you to diagnose common problems such as lack of maintenance, permissions conflicts and Hard Drive glitches that cause your Mac to run slowly.

There are two main routes to take to make your Mac as lean and mean as it was when you bought it (or even more so!)—hardware upgrades and software maintenance. One of the easiest things to do is to purchase additional RAM. As a rule, I say you can never have too much RAM. If you don't have at least 2GB of RAM, you should immediately upgrade. In addition to RAM, you should consider getting a faster hard drive (an SSD drive is what I recommend–more on that later). If your Mac is more than five years old, however, you might want to consider purchasing a new one, especially if you're running newer applications or the latest version of Mac OS X.

The following are essential utilities for keeping your Mac running smoothly and for fixing little problems that may crop up (Click the links to go to their download sites):

My Windows PC is Running Really Slow - Help!

This article will help you to diagnose common problems, such as Spyware, Adware, Viruses, RAM and Hard Drive problems, that cause your Windows PC to run slowly.

Over the course of time, everything becomes dirty and needs some cleaning. Computers are no different; many different programs do many different things on your computer, and 'dirt' can result. It's a good idea to clean up your computer from time to time, and it's usually not very hard to do! Be sure to read through this whole article to find advice for keeping your PC running smoothly far into the future.

Subscribe to RSS - slow