Skip to content

Enable tag fast path on EF Core - #843

Open
waf wants to merge 2 commits into
zzzprojects:masterfrom
waf:enable-tag-fast-path-on-efcore
Open

Enable tag fast path on EF Core#843
waf wants to merge 2 commits into
zzzprojects:masterfrom
waf:enable-tag-fast-path-on-efcore

Conversation

@waf

@waf waf commented Aug 19, 2026

Copy link
Copy Markdown

EF6 has a "fast path" for IsCommandInfoOptionalForCacheKey, but as far as I can tell EF Core doesn't use it. This wires up the property for the EF Core path too.

waf added 2 commits August 19, 2026 16:32
Use IsCommandInfoOptionalForCacheKey in the EFCORE branch of
GetCacheKey (the behaviour already exists in EF6).

When the option is enabled, the tags become the only information
available to build the cache key.

Also validate that UseFirstTagAsCacheKey or UseTagsAsCacheKey is
enabled.
@JonathanMagnan

Copy link
Copy Markdown
Member

Thank you @waf for the pull request,

My developer will look at it.

Best Regards,

Jon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants