I moved a live shop database from MySQL 8 to PostgreSQL 17 while an application kept hitting it with 300 requests a second. None of its 546,361 requests failed or got a wrong answer, and writes paused for 87 milliseconds at the switch. My first attempt, though, quietly lost 93 orders, and the reason it happened turned out to be the most useful thing I learned.
Most migration guides stop once the data has been copied, which is a shame, because copying is the easy part. The hard part is that the application keeps writing while you copy, so the copy is out of date the moment it finishes. You then have to catch up, prove that both databases hold the same data, and move the application across without anyone noticing.
I wanted to go through all of that for real and measure every step along the way. So I built a MySQL database that looks like something a company has been running for ten years, pointed a live workload at it, and moved it to PostgreSQL on the same Contabo server I've used for my last few articles.…