Click here to Skip to main content
15,896,207 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

Revisions


  

Compare Revision Minor Date Status Editor
1 - publicly available No 7-Jun-10 16:14 Available Lee Humphries

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