Skip to content

Commit aecc460

Browse files
committed
chore(infra): cut the Cloudflare Worker's D1 binding over to a fresh loopover database
The previous database (b2c79dd6-7771-4b1f-aa6b-085d5f3e9528, internally still named "gittensory" from before the 2026-07-14 rename) had grown to 8.96 GB of its 10 GB cap. D1 never runs VACUUM (cloudflare/workerd#1618), so the batch of now-pruned contributor-decision-pack rows (#9459 -- 18,336 rows / ~6.3 GB deleted) freed pages that get reused, not returned: the file was never going to shrink back down on its own. Cuts DB over to a freshly created, correctly-named "loopover" database (da7537cc-ab54-4dc1-8c38-2713f03f1130), populated from a verified export of the pruned source database: - Every table's row count matches the source exactly, except ordinary live-write drift on actively-written tables (webhook/audit/usage logs, which never stop changing between an export and a later comparison) -- confirmed via a full 103-table sweep. - d1_migrations matches exactly (202/202 rows, same max id). - signal_snapshots' contributor-decision-pack (the table #9459 fixed) is 213/213, exactly one row per contributor, confirming the dedup carried over correctly. - 206 rows whose payload_json exceeded D1's ~100KB single-statement text limit (SQLITE_TOOBIG) were re-imported via a chunked INSERT + payload_json ||= UPDATE sequence, verified byte-identical against the source before import. No other file in the repo references the old database_id. cf-typegen is unaffected (binding name/shape unchanged, only the id). Refs #9435
1 parent 6571a1b commit aecc460

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

wrangler.jsonc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,18 @@
290290
],
291291
"d1_databases": [
292292
{
293+
// #9435/#9459 cutover (2026-07-27): the previous database_id (b2c79dd6-7771-4b1f-aa6b-085d5f3e9528,
294+
// internally named "gittensory" pre-rename) had grown to 8.96 GB of its 10 GB cap -- D1 never runs
295+
// VACUUM (cloudflare/workerd#1618), so a large batch of now-pruned rows (contributor-decision-pack,
296+
// #9459) left the file bloated with reusable-but-never-reclaimed free pages that would only grow back.
297+
// This id (da7537cc-ab54-4dc1-8c38-2713f03f1130) is a fresh database, correctly named "loopover"
298+
// throughout (matching the 2026-07-14 repo/app rename), populated from a verified export of the old
299+
// database taken AFTER the decision-pack prune: every table's row count matched exactly except for
300+
// ordinary live-write drift on actively-written tables (webhook/audit/usage logs), confirmed against
301+
// d1_migrations (202/202) and the retention-pruned signal type (213/213 rows).
293302
"binding": "DB",
294303
"database_name": "loopover",
295-
"database_id": "b2c79dd6-7771-4b1f-aa6b-085d5f3e9528",
304+
"database_id": "da7537cc-ab54-4dc1-8c38-2713f03f1130",
296305
"migrations_dir": "migrations",
297306
},
298307
],

0 commit comments

Comments
 (0)