Skip to content
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

Execute parameter-based optimizations only if the query requires it #17597

Open
roji opened this issue Sep 3, 2019 · 0 comments
Open

Execute parameter-based optimizations only if the query requires it #17597

roji opened this issue Sep 3, 2019 · 0 comments

Comments

@roji
Copy link
Member

roji commented Sep 3, 2019

ParameterValueBasedSelectExpressionOptimizer runs InExpressionValuesExpandingExpressionVisitor and FromSqlParameterApplyingExpressionVisitor at query execution (not compilation). We can detect during compilation if these visitors are actually necessary and flow that information to the execution phase.

For example, for queries which don't contain InExpression we wouldn't need to run InExpressionValuesExpandingExpressionVisitor.

See also #16375 which is related.

@roji roji added the area-perf label Sep 3, 2019
@ajcvickers ajcvickers modified the milestones: 3.1.0, Backlog Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants