dotnet / dotnet/efcore

Optimize SQL if shared column predicate is being checked for every discriminator in a complete discriminator mapping

Open
#29,998 0 comments 0 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

With the fix for #29913, SQL logic will be if (column_predicate and discriminator1 matches) or (column_predicate and discriminator2 matches) and so on. If this results in matching all the discriminators where the shared column is used, then the discriminator matches can be optimized away.

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.