Skip to content

Query: optimize queries where operation is performed after projection #10811

Closed

Description

@maumar

Reported as part of #9282 - Telerik's RadGrid (and potentially others?) produces queries that EF doesn't know how to efficiently translate - complex projection (that includes correlated collections) with filter/sorting/paging applied afterwards on on of the projected collections. This results in inefficient QM that we don't know how to properly translate, which leads to client evaluation what perhaps could be avoided.

We could recognize some of the patterns and push the operation before the projection

Activity

  1. added this to the Backlog milestone on Feb 5, 2018
  2. MT-UE commented on May 2, 2018

    @MT-UE

    Getting this sorted out would allow to define some sort of "custom view" to a data model (i.e. to expose it over OData or other LINQ related client query capabilities).

  3. harsh-chaturvedi commented on Mar 7, 2019

    @harsh-chaturvedi

    @ajcvickers - Any updates on this backlog item?

  4. ajcvickers commented on Mar 7, 2019

    @ajcvickers
    Contributor

    @harsh-chaturvedi Since this issue is in the backlog, it means it is not going to happen for the 3.0 release. We will re-assess the backlog following the 3.0 release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources.

  5. smitpatel commented on Mar 15, 2020

    @smitpatel
    Contributor

    We don't do N+1 evaluation anymore.

  6. modified the milestones: Backlog, 3.1.0 on Mar 15, 2020
  7. self-assigned this
    on Mar 15, 2020
  8. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions