169 Views
Compares the performance differences and considerations between using Count and Any to determine if any elements in a collection match a filter. A commenter also points out that using Any with an embedded filter gives different performance results as well. While it's important not to prematurely optimize, it is important to consider the points in this article if you write queries like this that run in a tight loop or iterate over large sets of data.
0 comments