fix(orders): lower bulk filter chunk size 200 -> 100 to stay under PB limit

This commit is contained in:
Dave 2026-08-31 00:06:47 +02:00
parent 2b0dd57af0
commit ee2dcdecb7
2 changed files with 2 additions and 2 deletions

View file

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

View file

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