From dc19525a6f55a1373e5db6596b3275c68907acc7 Mon Sep 17 00:00:00 2001 From: Vikhyath Mondreti Date: Mon, 18 Aug 2025 01:10:47 -0700 Subject: [PATCH] reduce batch size to prevent timeouts --- apps/sim/db/migrations/0076_damp_vector.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/db/migrations/0076_damp_vector.sql b/apps/sim/db/migrations/0076_damp_vector.sql index 57adab4064..0b39c6825e 100644 --- a/apps/sim/db/migrations/0076_damp_vector.sql +++ b/apps/sim/db/migrations/0076_damp_vector.sql @@ -22,7 +22,7 @@ ALTER TABLE "workflow_execution_logs" -- Process the backfill in batches to avoid large temporary files on big datasets DO $$ DECLARE - v_batch_size integer := 5000; -- tune if needed based on dataset size + v_batch_size integer := 500; -- keep batches small to avoid timeouts/spills v_rows_updated integer := 0; BEGIN LOOP