đŸ”„ The DB Grill đŸ”„

Where database blog posts get flame-broiled to perfection

Surprise with innodb_doublewrite_pages in MySQL 8.0.20+
Originally from percona.com/blog/feed/
November 5, 2025 ‱ Roasted by Dr. Cornelius "By The Book" Fitzgerald Read Original Article

Oh, a treatise on the “Quirks of Index Maintenance”! How utterly quaint. It’s always a delight to see the practitioners in the field discover, with all the breathless wonder of a toddler finding their own toes, the performance implications of... well, of actually trying to maintain data integrity. One must applaud such bravery in tackling these esoteric, front-line engineering challenges.

And the hero of our little story is the InnoDB “change buffer.” A truly magnificent innovation, if by “innovation” one means “a clever kludge to defer work.” It’s a monument to the industry’s prevailing philosophy: “Why do something correctly now when you can do it incorrectly later, but faster?” It is a bold reinterpretation of the ACID properties, is it not? I believe the ‘I’ and ‘D’ now stand for Isolation (from your own indexes) and Durability (eventually, we promise) in this new lexicon. The sheer audacity is almost commendable.

One gets the distinct impression that its architects view the CAP theorem not as a fundamental trilemma of distributed systems, but as a takeout menu from which one simply orders “Availability” and “Partition Tolerance” while telling the chef to “hold the Consistency.” Clearly, they've never read Stonebraker's seminal work on the inherent trade-offs in relational systems; they'd rather reinvent the flat tire and call it a “low-profile data conveyance system.”

They call them “quirks.” What a charming euphemism for what we in academia refer to as “predictable consequences of violating foundational principles.” Let us list these delightful little personality traits, shall we?

Poor Ted Codd. He gave us the sublime elegance of the relational model, a pristine mathematical abstraction where all information is represented logically in one and only one way. His first rule, the Information Rule, was a plea for this very simplicity! He must be spinning in his grave, watching his beautiful theory get festooned with these baroque, physical-layer “buffers” and “tricks” that violate the very spirit of data independence. But I suppose reading Codd’s original 1970 paper is too much to ask when there are so many more blog posts about a new JavaScript framework to consume.

Still, one must applaud the effort. It serves as a charming artifact, a perfect case study for my undergraduate course on how decades of rigorous computer science can be cheerfully ignored in the frantic pursuit of shaving two milliseconds off an API call.

Now, if you'll excuse me, I have actual research to review.