-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
AsSplitQuery : Remove LEFT JOIN in child query when split the query and join self #31700
Comments
Sorting is needed so that EF Core can correctly fixup the related entities after they have been returned. |
See also #29171. |
Not for reference navigations. I believe this is a duplicate of #29182. Please upvote if you agree @universorum |
Duplicate of #29182 |
Sorry to be a pain @universorum, and possibly a bit cheeky of me, but I meant if you could up-vote the other open issue rather than my comment, as this would slightly increase its chances of getting fixed. (I've identified 3 other duplicates, it's a shame they can't be converted to up-votes!) |
When we split the query they include self
It will join self in all generated query
Look like it only use for sorting.
But why we need order it in all query?
Is it possible to remove that?
I think a query like this would work well:
Repo
Microsoft.EntityFrameworkCore 7.0.10
Microsoft.EntityFrameworkCore.Sqlite 7.0.10
Possibly related: #29182
The text was updated successfully, but these errors were encountered: