Normalize .Count != 0 to Any() in preprocessing #33644
Labels
area-perf
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-enhancement
Milestone
The following two queries:
... translate to very different SQLs:
We should normalize the latter (Count > 0, Count != 0) to the former (Any). This is important especially as VS suggests changing Any() to Count > 0.
Analyzed and flagged by @TehWardy in #33638
The text was updated successfully, but these errors were encountered: