Skip to content

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

@roji

Description

@roji

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).

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions