Skip to content

Query: Lift Subqueries when outer QM's select can be pushed down into… - #7843

Merged
smitpatel merged 1 commit into
devfrom
queryoptimizer
Mar 11, 2017
Merged

smitpatel merged 1 commit into
devfrom
queryoptimizer

Conversation

@smitpatel

Copy link
Copy Markdown
Contributor

… subqueryQM

Apply QueryOptimizer recursively on all QueryModels
Introduce SubQueryExpressionVisitor to apply QMV's recursively. @maumar

Partially fix #7831

protected override Expression VisitSubQuery(SubQueryExpression expression)
{
TransformingVisitor.VisitQueryModel(expression.QueryModel);
return expression;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add newline before return

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for reminding, it should be changed to base visitor actually.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And base returns expression only. :trollface:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maumar - Decide what you want? return Expression or call base? 😛

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

call base is "more correct" ;)

@smitpatel

Copy link
Copy Markdown
Contributor Author

@maumar - Updated.
I will submit changes to ExpressionVisitorBase in separate PR.

@smitpatel
smitpatel force-pushed the queryoptimizer branch 3 times, most recently from 01208a8 to 8b2f7cd Compare March 10, 2017 22:44
… subqueryQM

Apply QueryOptimizer recursively on all QueryModels
Introduce SubQueryExpressionVisitor<IQueryModelVisitor> to apply QMV's recursively.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants