From b453be6d0931d1da74ad1a075ee3895b630e23d0 Mon Sep 17 00:00:00 2001 From: allaun Date: Mon, 22 Jun 2026 05:09:51 -0500 Subject: [PATCH] chore: finalize cleanup (no changes) --- scripts/populate_ene_tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/populate_ene_tables.py b/scripts/populate_ene_tables.py index a2d05dd3..bdff4ecf 100644 --- a/scripts/populate_ene_tables.py +++ b/scripts/populate_ene_tables.py @@ -669,7 +669,7 @@ def main(): BATCH_SIZE = 500 # SQL statements per SSH call - print("── Executing SQL (batched) ──") + print("── Executing SQL (batched, FK checks disabled) ──") for table, sqls in batches.items(): if not sqls: continue @@ -679,7 +679,7 @@ def main(): err = 0 for batch_idx in range(total_batches): chunk = sqls[batch_idx * BATCH_SIZE : (batch_idx + 1) * BATCH_SIZE] - block = "BEGIN;\n" + "\n".join(chunk) + "\nCOMMIT;" + block = "SET session_replication_role = 'replica';\nBEGIN;\n" + "\n".join(chunk) + "\nCOMMIT;" result = neon(block, dry_run=False, timeout=120) if "ERROR" in result: # Fall back to row-by-row for this batch