feat(engine): introduce planned query execution - #760
Merged
azimafroozeh merged 4 commits intoSep 20, 2026
Merged
Conversation
azimafroozeh
force-pushed
the
planner-m3-read-path-plan
branch
from
September 20, 2026 02:44
085697b to
e247b86
Compare
azimafroozeh
force-pushed
the
planner-m3-read-path-plan
branch
from
September 20, 2026 11:23
e247b86 to
58ed625
Compare
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.
What & why
This PR introduces planned query execution for engine v2. It lays the foundation for query optimization, pipelining, vectorized execution and scheduling.
Engine v2 resolves the four issues below. Enable it with
set engine = v2;or--set engine=v2; v1 remains the default and does not receive these fixes.Local benchmark rerun: release build, Apple M5 Max, four Tokio workers, 20,000 nodes with 1,024-dimensional vectors and 100,000 edges. The
issue_shapesbenchmark used a fresh fixture and four fresh processes per engine/query pair, with three warmups and eleven timed executions per process. Engine order alternated between repeats. Complete results were checked against the fixture before timing and after every query. The store used localfile://storage with an uncontrolled OS page cache; these are preliminary diagnostic measurements. The source fingerprint remained unchanged through compilation and measurement. The benchmark records the v2 query plans alongside the correctness checks.Latency uses the lower middle value of the four process medians. Peak RSS is measured with
ru_maxrssand includes store opening, warmups and complete-result checks.Backing issue / RFC
Checklist
docs/user/queries/explain.md, engine settings and search behavior).Local verification
Notes for reviewers