Review follow-ups: PR #672 — perf(import): mint a commit chunk's GCNs in one lookup, not one query per card #904
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Non-blocking findings from the auto code review of PR #672 (perf(import): mint a commit chunk's GCNs in one lookup, not one query per card) — captured for batch cleanup rather than blocking the PR.
Commit
8d238c9· https://github.com/Gambit-Inc/gambit/pull/672SHOULD-FIX:
backend/app/routes/imports.py:3601-3602: the comment justifyingCOMMIT_SLICE_UNITS("commit mints one GCN (a query) per card, so 50 rows x qty 200 would be one 10k-query slice") is now false — this PR is exactly the change that eliminates the one-GCN-query-per-card cost. The slice-sizing rationale documented there no longer matches reality, which will mislead whoever next tunesCOMMIT_SLICE_UNITSor investigates commit latency.NITS:
none
Filed from a Claude Code session