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
Most databases can take advantage of indexes (and in some cases even auto-generate them) when queries perform equality comparisons (instead of inequality).
In some places EFCore already tries to lean towards equality
Most databases can take advantage of indexes (and in some cases even auto-generate them) when queries perform equality comparisons (instead of inequality).
In some places EFCore already tries to lean towards equality
efcore/src/EFCore.Relational/Query/SqlExpressionFactory.cs
Lines 657 to 666 in 20edb63
In other places it disregards this and in fact can even replace equality comparisons with inequalities
efcore/src/EFCore.Relational/Query/SqlNullabilityProcessor.cs
Lines 1748 to 1757 in 20edb63
efcore/src/EFCore.Relational/Query/SqlNullabilityProcessor.cs
Lines 1803 to 1804 in 20edb63
It would be better to avoid converting equalities into inequalities and, when possible, convert inequalities into equalities.
The text was updated successfully, but these errors were encountered: