From ab7818f2516bc71907776c2a5d3b6f69af8bc0cd Mon Sep 17 00:00:00 2001 From: Pl217 Date: Fri, 6 Jun 2025 17:54:35 +0200 Subject: [PATCH] Revert batch size Even though using the maximum theoretical limit defined by `PG_MAX_QUERY_PARAMS` works, it takes a significant performance toll --- src/domain-services/flows/flow-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain-services/flows/flow-service.ts b/src/domain-services/flows/flow-service.ts index 095c0268..9bc1d744 100644 --- a/src/domain-services/flows/flow-service.ts +++ b/src/domain-services/flows/flow-service.ts @@ -512,7 +512,7 @@ export class FlowService { const parentFlows = await this.progresiveSearch( models, parentFlowsRef, - PG_MAX_QUERY_PARAMS - 2, // Use a batch size of PG_MAX_QUERY_PARAMS - 2 to avoid hitting the limit + 1000, 0, false, // Do not stop on batch size [],