SQL Server 2000索引实现内幕

翻译自:Microsoft SQL Server 2000 Unleashed,Second Edition,Chapter 33,Index
*********************************************************************************

Indexs

   当对一个没有索引的表进行查询时,SQL Server只好检索该表的每个数据页,来查看每页中的每行记录是否满足查询条件的要求。SQL Server只好扫描所有的页,因为没有别的方法知道哪些行就是满足用户的条件的记录,这种方法就是所谓的表扫描 (Table Scan)
 
    对一个堆表来说,表扫描是通过遍历为该表的IAM页和读为该表按次序分配的盘区(extents)上的页来完成的。对一个聚集表来说,SQL Server首先查找聚集索引的根页位置(在sysindexs表的root列,且indid为1),然后判断....(未完)



http://www.sql-server-performance.com/faq/graphical_query_pla_%20optimizer%20_p1.aspx
http://technet.microsoft.com/en-us/library/cc917672(loband).aspx
http://www.sqlservercentral.com/articles/Performance+Tuning/clusterthatindex/952/


SARG:

http://www.sqlservercentral.com/articles/Performance+Tuning/bewareofsearchargumentsargdatatypes/2485/

http://www.sqlmag.com/Articles/Index.cfm?ArticleID=42349&DisplayTab=Article

http://hi.baidu.com/jlike_521/blog/item/3c0b3c43fc7e151a73f05dba.html

你可能感兴趣的:(sql,SQL Server,Microsoft,Blog,performance)