-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: propagate evaluated plans limit and paths limit to the native query planner #6316
base: dev
Are you sure you want to change the base?
Conversation
…ery planner The experimental `max_evaluated_plans` and `paths_limit` options were only propagated to the legacy JS planner, not the native query planner. Now they work with both planners.
✅ Docs Preview ReadyNo new or changed pages found. |
@goto-bus-stop, please consider creating a changeset entry in |
CI performance tests
|
type_conditioned_fetching: self.experimental_type_conditioned_fetching, | ||
debug: Default::default(), | ||
debug: QueryPlannerDebugConfig { | ||
bypass_planner_for_single_subgraph: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably should also pass this down (link)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no router config to enable this option as far as i know. my general feeling is that the option could be removed entirely from the query planner, but 🤷🏻♀️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm it is something that we do support in the gateway (which I believe was done as an experimental feature to skip the expensive QP computation) - I'll open a ticket to figure out what we want to do on RS side of things
Wait. Why are there two QP configurations? router/apollo-router/src/configuration/mod.rs Lines 416 to 430 in dc0426c
router/apollo-router/src/query_planner/bridge_query_planner.rs Lines 169 to 182 in dc0426c
|
The experimental
max_evaluated_plans
andpaths_limit
options were only propagated to the legacy JS planner, not the native query planner.Now they work with both planners.
It would be nice to write an integration test. Perhaps by running a query from the apollo-federation test suite and then asserting on the metric value?
Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Note any exceptions here
Notes
Footnotes
It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. ↩
Configuration is an important part of many changes. Where applicable please try to document configuration examples. ↩
Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions. ↩