Latest
Starting to Write Late Is a Head Start: What the Years Hand YouBjørn Larssen: Gods Who Don’t Know How to GodDan Shinder: Everyone Has a StoryWhat’s New at The Writing King: Week of November 15, 2026What My Old Rules of Friendship MissedWhen Helping a Friend Becomes EnablingThe Money Appeared the Week After the DisasterHow a Stranger Decides You Are Credible in Nine SecondsWhat You Have to Decide Before Anybody WritesWriting It Before You Need ItCross Training Covered Everything Except the Role That Mattered MostBehind the Book: Galactic InvasionBehind the Book: The Woke VirusBehind the Book: You Don’t Own Anything AnymoreWhat’s New at The Writing King: Week of November 8, 2026Alexander Zhidkov: Decision MakingJessi Szurek: Expand Your RangeYou Don’t Own Anything AnymoreThe Budget Decided How My Department Was ShapedWhy Your Competitor’s Book Is Working and Yours Would NotWhy Are These Guys Smiling? A Business Book That Became a Wrestling MemoirPangram Wants to Decide Who Gets PublishedWhat You Have Enough Material For Right NowWhen a Book Is the Wrong ToolGalactic InvasionThe Woke VirusChatGPT Turns Four: From a Free Research Preview to GPT-6What’s New at The Writing King: Week of November 1, 2026Diwali: The Festival of Lights and the Story Behind the LampsHow Much Water and Power Does Heavy AI Use Take? I Ran My Own NumbersBad Boys: Ride or Die (2024)Vesuvius Day: The Teenager Who Wrote Down Pompeii’s Last DayAnti-Communism Week: Remembering the Writers Communism SilencedVoyager 1 One Light-Day: Fifty Years to Travel One Day of LightVellum Added an Optional AI Feature. A Pile-On Killed It in a Day.Are AI Subscriptions Losing Money? The Gym Membership Math Says NoAI Terms Every Writer Should Know, and Why Each One MattersWorking While Sick: What 24/7 On Call Cost MeHe Banned AI From His Writing Group. His Own Cover Got Called AI Slop.Who Writes the Fake Fan Mail Authors Get? Inside the Scam CompoundsSMS Appointment RemindersJoe Rockey: Ghostwriting His BookFree BooksDarrell Stern: Stop Being Invisible, Become UnmissableHow to Turn Your Expertise Into a Book People Want to Read | The Expert MethodWhat’s New at The Writing King: Week of October 25, 2026Challenger Remembrance Day: The Engineer Who Wouldn’t SignJoel Salomon: The Truth About MoneyReddit Is Putting Up a Login Wall. Wikipedia Won’t Be Far Behind.

Six DBAs, Six Months, Open Checkbook

TL;DR: The true cost of our platform migration wasn’t in the migration budget. It arrived afterward: hundreds of SQL queries that had to be optimized for the new database. The problem was big enough that I had an open checkbook, and I spent it on a team of six database specialists for roughly six months. DBAs aren’t cheap. The lesson executives need: the query layer is where migration costs hide, and it presents its bill after go-live.

When the performance crisis hit after our big-bang platform migration, the emergency fix bought survival, and survival bought time to find the cause.

The cause was the query layer. Hundreds of SQL queries, written and tuned over years against the old database, behaved badly against the new one. Each query was logically correct. The data came back right. It just came back slowly, and hundreds of slow queries compound into a platform that can’t carry a business.

The query-layer problem still rankles. Nobody lied to us, and nobody made a stupid mistake. The cost was simply invisible until the whole company was standing on the new platform, and by then the only question left was how fast we could pay it. Every executive approving a database migration deserves to hear about it before anyone tells them everything will carry over.

Why do correct queries go bad after migration?

Why correct queries go bad after a database migrationA database is an engine that decides how to find what you ask for, and every engine decides differently. A query shaped to be fast on one engine can be pathologically slow on another, not because anything is wrong, but because the new engine takes a different path to the same answer. Multiply that by every query a business has accumulated over decades and the migration has silently converted the best-tuned asset into the largest liability. Nothing in testing fully exposes this, because the compounding only appears under real production load, meaning all the queries, all the users, all at once. Which is why the bill arrives after go-live, during the barely tolerable weeks.Why correct queries go badNothing is wrong with the query. The engine just took a different path.1The query is correctIt was correct before, and itreturns the same answer now2The engine decides differentlyEvery engine picks its own pathto the same result3Multiply by decades of queriesYour best-tuned asset silently becomesyour largest liability4Testing does not catch itThe compounding only appears underreal load: all queries, all users, at onceThis is where migration budgets quietly detonate, and it happens after go-live.
Why correct queries go bad after a database migrationA database is an engine that decides how to find what you ask for, and every engine decides differently. A query shaped to be fast on one engine can be pathologically slow on another, not because anything is wrong, but because the new engine takes a different path to the same answer. Multiply that by every query a business has accumulated over decades and the migration has silently converted the best-tuned asset into the largest liability. Nothing in testing fully exposes this, because the compounding only appears under real production load, meaning all the queries, all the users, all at once. Which is why the bill arrives after go-live, during the barely tolerable weeks.Why correct queries go badNothing is wrong with the query. The engine justtook a different path.1The query is correctIt was correct before, and itreturns the same answer now2The engine decides differentlyEvery engine picks its own pathto the same result3Multiply by decades of queriesYour best-tuned asset silently becomesyour largest liability4Testing does not catch itThe compounding only appears underreal load: all queries, all users, at onceThis is where migration budgets quietly detonate,and it happens after go-live.

Migration budgets detonate on a mechanism executives can understand without jargon. A database is an engine that decides how to find what you ask for, and every database engine decides differently. A query shaped to be fast on one engine can be pathologically slow on another. Nothing is broken. The new engine just takes a different path to the same answer, and nobody selling the new platform is in a hurry to mention it.

Multiply that by every query your business has accumulated over decades, and the migration has silently converted your best-tuned asset into your largest liability.

Nothing in our testing fully exposed this, because the pile-up only appears under real production load, all the queries, all the users, all at once. That’s why the bill arrived after go-live, in the barely-tolerable weeks, instead of in any planning document.

Why did testing miss the migration problem?

A query shaped to be fast on one engine can be pathologically slow on another.

The fair question is why none of this came out before go-live, and the answer is a lesson about what testing can and can’t see. Individual queries tested fine, because a query that takes four times longer on the new engine still returns in what looks like acceptable time when it runs alone against a test copy. The pathology was compound: hundreds of modestly degraded queries, sharing one platform, under full production concurrency, with real data distributions the test sets only approximated.

Each ingredient was individually testable; the collision of all of them existed only in production.

Load testing as a discipline barely existed for us then. Today it exists, teams still skip it to hit a date, and I don’t understand how anyone signs off on that. The date gets met, and then the business spends months paying for the shortcut.

If you want the pre-payment version of our lesson: inventory the query workload before committing to the migration, benchmark a representative slice, the heaviest and most frequent queries, against the target platform with production-scale data, and multiply what you find across the full inventory. The number that exercise produces is the real migration estimate. Ours arrived by invoice instead.

Your migration budget covered the weekend. The real bill was hundreds of SQL queries, six DBAs, and six months.
Share on X

The open checkbook

The problem was big enough, and the alternative, a rollback of the entire migration, expensive enough, that I effectively had an open checkbook.

I could spend whatever it took. What it took was a team of six database administrators, specialists in the new platform, working for roughly six months, and you have to understand that DBAs of that caliber aren’t cheap. Six of them, half a year, at emergency rates.

I hired a specialist firm instead of pushing the work onto internal staff, and the reasoning holds up decades later. Query optimization at that depth is a distinct craft: reading execution plans, restructuring joins, redesigning indexes for the new engine’s behavior. My people were experts in our systems; the firm’s people were experts in making this database fast. The combination worked. Query by query, hundreds of times over, the platform climbed out of barely tolerable and into healthy.

My take

Budget for the query layer before you sign off on the migration. Queries that test fine alone can collapse together under production load, and the bill shows up after go-live. Inventory the workload, benchmark the heaviest and most frequent queries against the new platform with production-scale data, and multiply across the inventory. That number is your real estimate. If the problem lands anyway, hire specialists in the new database. Ours took six DBAs about six months.

How should you budget for a database migration?

I tell executives planning a platform migration that their budget covers the visible work: conversion, cutover, infrastructure, testing.

The invisible line item is the accumulated tuning of every query the business runs, an asset that doesn’t transfer between platforms and has to be rebuilt on the new one. Price that rebuild before you commit, or price it afterward at emergency rates with the company standing on a struggling platform. We did it the second way, and I wouldn’t wish it on anyone.

Pricing the query layer before a database migration
Step What to do
Inventory List the full query workload before committing to the migration
Benchmark Test the heaviest and most frequent queries on the target platform
Use real scale Run benchmarks with production-scale data, not a small test copy
Multiply Apply what you find across the full inventory for the real estimate
Load test Do not skip it to hit a date; the pile-up appears only under load
Assign ownership Answer who will re-optimize the query layer, and with what plan and budget
Bring specialists If the problem lands anyway, hire experts in the new database

The first way is available to anyone who asks the question in time, and the question is simple: what’s our plan and budget for re-optimizing the query layer, and who’s going to do it? A migration plan that skips that question has budgeted the weekend and left the rest of the migration to luck. I get angry every time I see one, because the people who pay for that gap are the employees stuck on a struggling platform for months while the fix gets bought at emergency rates. For more from this series, see The Digital Transformation Hub: real transformations, lived from the inside, decades before the term existed.

Frequently Asked Questions

What are the hidden costs of a database migration?
The query layer. Queries tuned over years for the old engine can perform badly on the new one while remaining logically correct. Re-optimizing them is a major specialist effort that most migration budgets omit entirely.
Why do SQL queries slow down after changing database platforms?
Each database engine chooses its own execution path. A query shaped for one engine’s optimizer can be slow on another, and the effect grows across hundreds of queries under real production load.
Should query optimization be done by internal staff or specialists?
Deep query optimization is a distinct craft. We engaged a specialist team, six DBAs for roughly six months, because expertise in the new platform’s engine mattered more than familiarity with our applications.

Sources

About the Author
Richard Lowe, professional ghostwriter

Richard Lowe is a professional ghostwriter and author with 113+ books authored and 54+ ghostwritten. Before writing full time he spent 33 years in enterprise technology, including 20 years as Director of Computer Operations and Technical Services at Trader Joe's. He writes nonfiction, fiction and memoir, and works with executives and experts on books that build authority.

More about Richard Lowe →

Disclaimer

The views and opinions expressed in this blog post are solely those of Richard Lowe and are based on personal experience and research. This content is for informational purposes only and should not be construed as professional legal, financial, accounting, or business advice. Always consult with qualified professionals before making important business or legal decisions. Richard Lowe is not a lawyer, accountant, or licensed professional advisor, and this content does not establish any professional relationship.