Click here to Skip to main content
15,895,746 members
Articles / Database Development / SQL Server

A better way to count(*)

Rate me:
Please Sign up or sign in to vote.
4.00/5 (2 votes)
7 Jun 2010CPOL 9.7K   4  
LINQ translates .count() to a SQL query that uses COUNT(*), but on large tables even count(*) can be too slow. Here's another way
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder md8n
Timor-Leste Timor-Leste
If it ain't broke - that can be arranged.

Comments and Discussions