Why is there a scan on my clustered index?

前端 未结 4 886
予麋鹿
予麋鹿 2021-01-01 16:44

SQL 2000
The NED table has a foreign key to the SIGN table NED.RowID to SIGN.RowID
The SIGN table has a foreign key to the NED table SIGN.SignID to NED.SignID
Th

4条回答
  •  清酒与你
    2021-01-01 16:57

    Here's a good blog post about when SQL Server reaches the "tipping point" and switches from an index seek to an index/table scan:

    http://www.sqlskills.com/BLOGS/KIMBERLY/post/The-Tipping-Point-Query-Answers.aspx

    You may want to look at the way your queries are filtering, as the tipping point is often much fewer rows than people expect.

提交回复
热议问题