You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a (sub)query results in 0 or 1 elements (First(), Last(), FirstOrDefault(), LastOrDefault(), Take(1), ...), OrderBy/ThenBy has no effect and can be ignored. This can avoid a pushdown and in general more complex queries.
When a (sub)query results in 0 or 1 elements (First(), Last(), FirstOrDefault(), LastOrDefault(), Take(1), ...),
OrderBy
/ThenBy
has no effect and can be ignored. This can avoid a pushdown and in general more complex queries.An example that could be improved:
In this case the SQL query is
but it could simply be
This can combine with #34482 to further simplify queries.
The text was updated successfully, but these errors were encountered: