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
select (complex sql) from Users
order by (complex sql)
The text was updated successfully, but these errors were encountered:
kresimirlesic
changed the title
Repeated statement in the ORDER BY instead of referring to the alias in the SELECT
Repeated statement in the ORDER BY clause instead of referring to the alias in the SELECT
Oct 20, 2020
EF core repeats the SQL statement in the order by section instead of referring to the alias.
This can cause duplicate branches (possibly complex) in the execution plan which can easily be avoided using aliases.
Example:
would be translated to something along:
select (complex sql) from Users
order by (complex sql)
The text was updated successfully, but these errors were encountered: