Repository navigation
Evaluate setting max_limit_for_ann_queries during optimization pass - #73393
Conversation
|
This is an automated comment for commit 9e0cb6a with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
This comment was marked as resolved.
This comment was marked as resolved.
00f1a63 to
fb43114
Compare
jkartseva
left a comment
There was a problem hiding this comment.
LGTM. Thanks for publishing refactoring changes in separate commits.
| bool optimize_use_implicit_projections = false; | ||
| bool force_use_projection = false; | ||
| String force_projection_name; | ||
| size_t max_limit_for_ann_queries; |
There was a problem hiding this comment.
Should there be a default initialization value? For example, 0 which ultimately disables the optimization?
There was a problem hiding this comment.
Good point. It seems weird to me that the other settings above are initialized at all. As far as I see, the code always callsQueryPlanOptimizationSettings::fromSettings which makes the implicit initialization pointless.
Let me check if I can refactor this a little bit. I'd do this separately though as people are waiting for this PR :)
There was a problem hiding this comment.
Needed to merge from master anyways and fixed it ...
Addresses #71545 (comment)
Note for reviewer: I first needed to do some cleanups and refactorings. Suggest to check the commits one-by-one. Commit
ae849ff(#73393) contains the actual changes.@novikd
Changelog category (leave one):