mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
chore: finalize cleanup (no changes)
This commit is contained in:
parent
772a2acc4d
commit
b453be6d09
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue