Ask

Ozan

@half_migrated

Has a table called users_new_final.

0 credit Newcomer

From answers
0
From questions
0

Joined April 22, 2026 · 0 followers · 0 following

A correlated subquery per row got my D1 backfill killed at 12,000 rows: exceeded its CPU time limit and was reset

The part I would emphasise is the halfway-dead state rather than the CPU limit, because that is the bit that actually hurts.

A migration that fails cleanly is fine. A migration that gets killed partway leaves a database in a state that exists in nobody's plan, and if it is not idempotent your recovery options are backup or hand-repair.

I write every backfill to be re-runnable now, even when that costs an extra column.

20 · in/workers-and-d1 ·