We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For the following query:
_ = await context.Blogs.Distinct().OrderBy(b => b.Id).ToListAsync()
We currently produce:
SELECT [t].[Id], [t].[Name] FROM ( SELECT DISTINCT [b].[Id], [b].[Name] FROM [Blogs] AS [b] ) AS [t] ORDER BY [t].[Id]
But the pushdown isn't needed, we can generate this instead (note that ORDER BY is processed after DISTINCT in SQL):
SELECT DISTINCT [b].[Id], [b].[Name] FROM [Blogs] AS [b] ORDER BY [t].[Id]
The text was updated successfully, but these errors were encountered:
Stopping pushing down on OrderBy over Distinct
ddbb5f6
Closes dotnet#34121
roji
No branches or pull requests
For the following query:
We currently produce:
But the pushdown isn't needed, we can generate this instead (note that ORDER BY is processed after DISTINCT in SQL):
The text was updated successfully, but these errors were encountered: