Wrap FR24 import in a transaction (audit M2) #6
Loading…
Reference in a new issue
No description provided.
Delete branch "perf/fr24-import-transaction"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stacks on #4. Continues
docs/audit-2026-06.mdat M2.Wraps the per-row FR24 import loop in
db.transaction():try/catchstill isolates bad rows, so partial-success semantics are preserved (a single bad row does not roll back the rest).Known limitation (noted in the doc): the import still blocks the event loop synchronously — inherent to better-sqlite3; only worth revisiting for very large imports.
Verified:
pnpm typecheck,pnpm lint,pnpm test(40/40) all pass.73f61586dfto30665fd662