mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
The CSV import loop ran a findUnique duplicate check before every single create — up to 2000 sequential round trips on a 1000-row import. Resolve takenAt + the idempotency key for every row first, then read every key's existence in one indexed query before the write loop; create and the per-row inventory consumption stay unchanged. Also runs prettier over the batch-route test files touched in the prior two commits.