/** * Most colonies one bulk entry (POST /treatments/bulk, /feedings/bulk, * /varroa-measurements/bulk) may cover - more than any apiary holds, and it * keeps one request from becoming an unbounded transaction. */ export const BULK_MAX_COLONIES = 100; /** * A bulk entry writes up to BULK_MAX_COLONIES records, each with its audit * entry and domain event, in one transaction - Prisma's 5 s default is too * short for the upper end. */ export const BULK_TRANSACTION_TIMEOUT_MS = 15_000;