Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fast OLEDB Record Count?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00634258
Message ID:
00635342
Views:
21
Michael

I suppose it's also possible that the B+tree implementation might even keep a counter of number of used nodes in each page to help it in its balancing operations and could then just read a 2 or 4 bytes off each page in the clustered index.

>If the table does have a non-clustered index, SQL Server can scan the leaf-level pages of the index and count the number of keys on each page. This will give much better performance especially if one of the non-clustered indexes uses a very small key.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform