Merge pull request #1008 from simstudioai/staging

reduce batch size to prevent timeouts
This commit is contained in:
Vikhyath Mondreti
2025-08-18 01:11:49 -07:00
committed by GitHub

View File

@@ -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