Skip to content

Remove unnecessary *last column* in ORDER BY when joining for collection #19828

Closed

Description

When loading related one-to-many entities, EF adds ORDER BY clauses to make sure all related entities for a given entity are grouped together.

However, we can remove the last ORDER BY clause as it is unnecessary and causes more work (see #19571).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions