Skip to content

Commit dc19525

Browse files
committed
reduce batch size to prevent timeouts
1 parent 09b95f4 commit dc19525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/db/migrations/0076_damp_vector.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ALTER TABLE "workflow_execution_logs"
2222
-- Process the backfill in batches to avoid large temporary files on big datasets
2323
DO $$
2424
DECLARE
25-
v_batch_size integer := 5000; -- tune if needed based on dataset size
25+
v_batch_size integer := 500; -- keep batches small to avoid timeouts/spills
2626
v_rows_updated integer := 0;
2727
BEGIN
2828
LOOP

0 commit comments

Comments
 (0)