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

Query: Convert lateral joins into predicate joins only when appropriate #17182

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

smitpatel
Copy link
Contributor

  • Validate inner select expression after extracting join predicate that it does not contain reference to outer.
  • Also apply same logic for generating collections in projection.
  • Identify DefaultIfEmpty in collectionSelector of SelectMany accurately.

This fix up a lot of N+1 evaluation queries.

Resolves #17112
Resolves #16311

- Validate inner select expression after extracting join predicate that it does not contain reference to outer.
- Also apply same logic for generating collections in projection.
- Identify DefaultIfEmpty in collectionSelector of SelectMany accurately.

This fix up a lot of N+1 evaluation queries.

Resolves #17112
Resolves #16311
@smitpatel smitpatel force-pushed the smit/correlationFinder branch from 99054d3 to 761e6cc Compare August 15, 2019 20:27
@smitpatel smitpatel merged commit 73f4269 into release/3.0 Aug 15, 2019
@ghost ghost deleted the smit/correlationFinder branch August 15, 2019 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants