Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Too slow query
Message
From
04/06/2001 08:31:25
 
 
To
03/06/2001 16:17:58
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Miscellaneous
Thread ID:
00514252
Message ID:
00514493
Views:
13
>>When i ran count(*) it gave me result immed. but select * from table still took 46 seconds

The test is only valid if you DON'T have a non-clustered index on the table. If you have an NC index, SQL Server can get the row count by scanning the leaf-level of the index.


>> when i ran dbcc Showcontig it prints following information
>- Scan Density [Best Count:Actual Count].......: 96.72% [59:61]

Well, you're table is not fragmented (we'll not anything to worry about).

>> - Avg. Bytes Free per Page.....................: 2389.6

The rows of this table must be very large. A page is ~8K and this stat. shows that over a quarter of all pages (61) are empty.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform