teqo-backup/src/lib/campaignOps/opsSnapshotPolicy.ts
Cursor Agent 5de3aeeb2e
OH3: pin snapshot policy constants + simplify benchmark script
Co-authored-by: Francisco Solla <fsolla@users.noreply.github.com>
2026-08-01 22:26:44 +00:00

14 lines
622 B
TypeScript

/** Latest municipality_update rows per municipality in the ops snapshot (OH3 benchmark). */
export const OPS_MUNICIPALITY_UPDATE_LIMIT_PER_MUNICIPALITY = 50
/** Gzip budget for full ops sync (ops-hibrido spec). */
export const OPS_SNAPSHOT_GZIP_TARGET_BYTES = 2 * 1024 * 1024
/**
* Prod JSON size measured 2026-08-01 (ops-hibrido spec) — anchor for OH3 projection.
* @see docs/plans/ops-hibrido-rsc-local-spec.md
*/
export const OPS_SNAPSHOT_PROD_MEASURED_JSON_BYTES = 4 * 1024 * 1024
/** Conservative gzip ratio for prod ops JSON (text-heavy updates). */
export const OPS_SNAPSHOT_PROD_GZIP_RATIO_ESTIMATE = 0.5