Contact us
Insights

Planning a backfill without blocking reporting

Reloading months of history can lock tables and slow reports. How to plan a backfill that runs in the background while people keep working.

The problem

History reloads collide with the working day

A change to the load logic, a new column, or a fixed bug often means reloading historical data. Run as one large job, a backfill can lock the tables reports read from, fill the database log, and run into the morning. Reports time out at 9am, and if the job fails halfway the warehouse holds a mix of old and new figures.

Before you start

Decisions to make first

How far back

Reload only the history that’s affected and that people still report on.

Which tables

List every table the change touches, including summaries built from them.

Where it runs

Load into a separate copy and swap it in, rather than updating live tables.

When it runs

Schedule heavy work outside reporting hours and the nightly load.

Running it

How to run the backfill

Step 1 of 4

  1. Build the corrected history alongside the live table, so reports are unaffected.

  2. Process one month at a time, recording which chunks are done so it can resume after a failure.

  3. Compare counts and totals for each chunk before moving to the next.

  4. Replace the live table in one quick step once every chunk is checked.

Tell people what will change

A backfill often changes figures for past periods that people have already reported. Tell report users before the swap which periods will change, by roughly how much, and why. For example: “sales for last March will rise because returns are no longer counted twice.”

Need to reload history?

Tell us what changed and how much history is affected. A few lines are enough.

Tell us what’s not working