Contact us
Insights

Estimating a migration window

How long will the move really take? Estimate from rehearsals, not guesses, including the steps people forget to time.

The problem

The weekend that wasn’t long enough

Database migrations are usually booked into a fixed window, such as Saturday evening to Sunday afternoon. The estimate is often the time to copy the data, with a margin. On the night, the copy takes as long as expected, but rebuilding indexes, checking totals, repointing applications, and fixing a permission nobody remembered take the rest. The window overruns and Monday starts on the old system, or on a half-checked new one.

Steps

Steps to include in the estimate

Stopping and draining

Stopping applications and integrations, and waiting for queues to empty.

Final backup and copy

The last backup, transfer, and restore, or the final sync.

Post-load work

Index rebuilds, statistics updates, consistency checks, and jobs re-created.

Checks and sign-off

Row counts, totals, and business testing before anyone says go.

Repointing

Connection strings, DNS, integrations, reports, and scheduled jobs.

Rollback time

How long it would take to go back, which must also fit in the window.

Estimating

How to estimate the window

Step 1 of 4

  1. Time every step on a copy of live data, on hardware like the target.

  2. Allow for data added between the rehearsal and the real date.

  3. More for steps that varied between rehearsals or depend on others.

  4. The latest time you can still roll back within the window.

Shrink the window, not just the estimate

If the estimate doesn’t fit, change the approach rather than hoping. For example: copy most of the data in the week before and only sync the changes on the night, or move archive data separately beforehand. The window then only needs to cover what changed since the last sync.

Planning a database move?

Tell us what you’re moving, how big it is, and when. A few lines are enough.

Tell us what’s not working