Skip to content

Parameter-specific evaluation in ParameterExtractor and compiled queries  #19209

Closed as duplicate

Description

@roji

When executing normal queries, ParameterExtractor is invoked every time, and performs evaluations on parameters. However, with compiled queries the ParameterExtractor is invoked only once, so these evaluations do not take place. This raises some questions:

  • Do we have any code in the pipeline which assumes evaluations have taken place? If so, queries would succeed when executed normally but fail as compiled queries.
  • At least in theory, the lack of evaluation in compiled queries could make them slower than normal queries. We could make client-side evaluation for compiled queries work by having ParameterExtractor register evaluations as lambdas to be invoked each time a query is executed.

Originally discussed in #19189 (comment)

Activity

  1. smitpatel commented on Dec 6, 2019

    @smitpatel
    Contributor

    We could make client-side evaluation for compiled queries work by having ParameterExtractor register evaluations as lambdas to be invoked each time a query is executed.

    That is what true funcletizer is.

  2. roji commented on Dec 6, 2019

    @roji
    MemberAuthor

    I guess I finally figured it out then :)

  3. added this to the Backlog milestone on Dec 6, 2019
  4. smitpatel commented on Feb 8, 2020

    @smitpatel
    Contributor

    This would also enable using properties over DbContext inside query.

  5. added theissue type on Jun 15, 2025
  6. removed this from the Backlog milestone on Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions