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
{{ message }}
Repository navigation
Parameter-specific evaluation in ParameterExtractor and compiled queries #19209
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.
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.
Activity
smitpatel commentedon Dec 6, 2019
That is what true funcletizer is.
roji commentedon Dec 6, 2019
I guess I finally figured it out then :)
smitpatel commentedon Feb 8, 2020
This would also enable using properties over DbContext inside query.
Query: Convert Set to entity queryables in explicitly compiled query
Query: Convert Set to entity queryables in explicitly compiled query
Query: Convert Set to entity queryables in explicitly compiled query