mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 23:17:59 -05:00
Merge pull request #1008 from simstudioai/staging
reduce batch size to prevent timeouts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user