Experiences like this take me two decades back, when I was introduced to RDBMS as “slower, heavier, but oh so good for …”. Somewhere along the way we lost both qualifications. There’s an ongoing myth that declarative is always faster/better because it lets the software smarts kick in, SQL must therefore be … Worse, I bet most people who do use a database server can’t even complete the sentence “good for ____”.
It’s just something you do, let’s not ask why.
Well, why?
Put another way, taking the brain-dead stupid, non-SQL, mainframe-like approach got me results 12 times faster than doing it the seemingly “correct” way.
Now this isn’t exactly what the whole disk vs. tape thing is about but it’s pretty close. I’m aware that InnoDB works with pages (that will contain multiple records, some of which I don’t need) and that’s part of the problem in this scenario. But it’s a really interesting data point. And it’s certainly going to change my thinking about working with our data in the future.
Not to say that RDBMS are bad for what they do, just that applied liberally they’re stillĀ incapableĀ of restoring a receding hairline. And that’s not the only problem they’re bad at solving.

Chipping the web: August 26th — Chip’s Quips