Repository navigation
perf(resolve): look up the probe's blocking keys in an index instead of scanning every corpus key (#1510) - #1512
Merged
Merged
Conversation
…of scanning every corpus key (#1510) er-dev on e547620: prefilter 306 ms of a 597 ms resolve, unchanged by opening fewer files. The cost is the key match: the one-row probe was joined against all ~520k cached keys with an OR of equalities, a per-call scan on one core. - The refresh indexes each precomputed key column (__k<i>) of the key table. - A call reads the probe's own value and type for each key once. It then unions one indexed equality per non-NULL key, __k<i> = CAST(value AS type), with a scan for any rule without a precomputable key. A NULL probe key matches nothing, as '=' would. - The same hit query feeds the detached fetch (file, row) and the attached one (record_key). a_detached_resolve_matches_the_lake_resolve, resolve (8) and resolve_latency_at_scale (equal to the lake resolve on every call; local p50 142 / p95 155 ms at 520k, 1 thread) pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 30, 2026 19:24 — with
GitHub Actions
Inactive
This was referenced Dec 1, 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 #1510
Part of #1429. #1429 stays open until er-dev measures p95 under 300 ms.
What
__k<i>) of the cached key table.__k<i> = CAST(value AS type), with a scan for any rule that has no precomputable key.=would.record_key).Why
On er-dev
e547620e(#1509), prefilter took 306 ms of a 597 ms resolve (pass-2 medians, 46 candidates). Opening fewer files didn't move it, since it was 320 ms before. The cost is the key match: the one-row probe was joined against all ~520k cached keys with an OR of equalities, a per-call scan on one core.Proof
a_detached_resolve_matches_the_lake_resolve;resolve_latency_at_scale, equal to the lake resolve on every call.make checkcouldn't complete: the host disk is at about 2 GB and Docker wedged. CI is the gate for this one.Risk & rollback
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