mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-15 07:16:52 +08:00
The archive kept one KV key per counter and rewrote each touched key on every aggregation pass. The free plan caps writes to different keys at 1,000/day, so a catch-up window spent the day's allowance, later retries failed mid-pass, and the backlog kept growing. A pass now reads, mutates and writes a single document, so the number of distinct keys is constant regardless of how many plugins exist. migrate-archive.mjs converts the legacy keys, verifies every value against the document, and leaves the old keys in place as a read-only backup.