Skip to content

Conversation

@cincuranet
Copy link
Contributor

@cincuranet cincuranet commented Nov 21, 2025

Backport of #37150.

Description

In EF 10 we added support for named query filters. Also with that IgnoreQueryFilters(IReadOnlyCollection<string>) method was added. Sadly we missed the fact that our structural comparison for query caching does not handle properly IReadOnlyCollection<string>.

Customer impact

Queries that use above mentioned method are never cached in EF, resulting in subpar performance.

How found

Customer reported on 10.0 RC2.

Regression

No.

Testing

Tests added.

Risk

Low. Quirk added.

@cincuranet cincuranet requested a review from a team as a code owner November 21, 2025 09:25
@cincuranet cincuranet changed the title Fixing named query cache misses by adding support for collections in constant expression comparer [release/10.0] Fixing named query cache misses by adding support for collections in constant expression comparer Nov 21, 2025
@cincuranet cincuranet added this to the 10.0.2 milestone Nov 21, 2025
@cincuranet
Copy link
Contributor Author

cc @artl93

Copy link
Member

@artl93 artl93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

customer-reported perforance, low risk with quirk just in case.

@cincuranet
Copy link
Contributor Author

Approved via email.

@cincuranet cincuranet merged commit deb7fa0 into dotnet:release/10.0 Nov 24, 2025
7 checks passed
@cincuranet cincuranet deleted the backport-37150 branch November 24, 2025 20:10
@roji roji modified the milestone: 10.0.2 Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants