Repository navigation
perf(resolve): fetch candidates from only the files that hold them (#1507) - #1509
Merged
Merged
Conversation
…1507) er-dev on 51e3671: prefilter 320 ms of a 604 ms resolve. The fetch read only the candidates' rows, but opened all 15 corpus files on EFS per call. The detached fetch now opens only the files holding a candidate and selects the corpus view's own column list. If a hit file lacks one of those columns (schema evolution), it falls back to the full file set, whose union_by_name has them all. a_detached_resolve_matches_the_lake_resolve passes, and resolve_latency_at_scale still equals the lake resolve on every call (local SSD: p50 179 / p95 241 ms at 520k on 1 thread, within noise of the previous run; the gain is EFS's per-file round trips). Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 30, 2026 12:28 — with
GitHub Actions
Inactive
This was referenced Nov 30, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1507
Part of #1429. #1429 stays open until er-dev measures p95 under 300 ms.
What
The detached candidate fetch opens only the files that hold a candidate and selects the corpus view's own column list. If a hit file lacks one of those columns (schema evolution), it falls back to the full file set, whose
union_by_nameunion has them all.Why
On er-dev
51e3671e(#1506), the prefilter took 320 ms of a 604 ms resolve (median servertotal_ms). The fetch read only the candidates' rows, but opened all 15 corpus files on EFS, a network filesystem, per call, although the 46 candidates sit in a few of them.Proof
a_detached_resolve_matches_the_lake_resolvepasses.resolve_latency_at_scalestill equals the lake resolve on every call.make check: exit 0.Risk & rollback
The column-list fallback keeps correctness under schema evolution. Rollback is
git revert <merge-sha>.Post-merge ledger
Closed by: unclosed
mainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not:
imagesbuilt, or correctly never ran because nothing that goes intoan image changed:
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion:
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change:
Donethrough the automation rather than byhand, and the issue closed:
(a skill, a reference, memory) — or nothing new was learned:
Specific to this change
🤖 Generated with Claude Code