dotnet / dotnet/efcore

Query operator to instruct EF to not cache

Open
#30,158 1 comment 6 reactions 0 assignees View on GitHub
area-perf area-query
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

In some cases, users generate a dynamic LINQ query which they know with very high probability they won't reuse. EF caches these queries internally, potentially evicting static queries, causing them to get compiled again.

We could allow users to tell us not to cache a given query, to provide more control over this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.