summaryrefslogtreecommitdiff
path: root/internal/version/version.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-20 21:28:26 +0200
committerPaul Buetow <paul@buetow.org>2026-02-20 21:28:26 +0200
commit76faa97675f16caea94b91ce558d3424be281246 (patch)
tree34ce684debb39d32a925c0749eee7a924257761f /internal/version/version.go
parent521cd636a9908adbe5f926bf30ade23af150e54e (diff)
perf: use transactions for database imports (118x speedup)
Previously, ImportFromDir was executing each of 2,587 records as individual INSERT statements, with each one creating its own transaction. This was extremely slow at ~11 seconds. Now wrap all inserts in a single database transaction, which is the standard approach for bulk data loading. This reduces import time from 11.2s to 0.076s (118x faster). Verified with: - Before: real 0m11.193s - After: real 0m0.076s Amp-Thread-ID: https://ampcode.com/threads/T-019c7c73-58f9-7516-958d-f30eb17a3bff Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'internal/version/version.go')
0 files changed, 0 insertions, 0 deletions