diff --git a/src/lib/server/order-delivery-note-link-service.ts b/src/lib/server/order-delivery-note-link-service.ts index 2766ab8..067074a 100644 --- a/src/lib/server/order-delivery-note-link-service.ts +++ b/src/lib/server/order-delivery-note-link-service.ts @@ -45,7 +45,7 @@ const WINDOW_DAYS = 60; * so 200 candidates keeps the filter at ~8 KB — at the limit. Using * 200 still collapses ~190 individual fetches per chunk while keeping * every individual filter comfortably parseable. */ -const BULK_FILTER_CHUNK_SIZE = 200; +const BULK_FILTER_CHUNK_SIZE = 100; // Per 2026-08-30 business decision: match against a DN of ANY status, // including `cancelled` (previously excluded along with a hardcoded diff --git a/src/lib/server/order-order-duplicate-link-service.ts b/src/lib/server/order-order-duplicate-link-service.ts index 82236ac..5b87910 100644 --- a/src/lib/server/order-order-duplicate-link-service.ts +++ b/src/lib/server/order-order-duplicate-link-service.ts @@ -34,7 +34,7 @@ const WINDOW_DAYS = 60; * roughly 30 chars (`order = "<15-char-id>" || `), so 200 candidates * keeps the filter at ~6 KB — comfortably under the limit while still * collapsing ~190 individual fetches per chunk. */ -const BULK_FILTER_CHUNK_SIZE = 200; +const BULK_FILTER_CHUNK_SIZE = 100; export type OrderDuplicateMatchMethod = "exact_items_same_company" | "no_match";