query execution plan : missing index

前端 未结 1 399
野趣味
野趣味 2021-01-19 23:10

alt text http://img502.imageshack.us/img502/7245/75088152.jpg

There are two tables that I join them together, one of them is a temp table and I create an index after

相关标签:
1条回答
  • 2021-01-19 23:45

    The "Missing index" hint that is displayed is your best starting point. SQL Server has detected you would get better performance by adding the index that it tells you to.

    It's difficult to be specific as really need to know what your SELECT statement is as a number of things could cause a scan to be done instead of seek.

    As an example, I recently blogged about how the structure of your WHERE clause for (e.g.) date filtered queries, can turn seeks into scans - in this instance things to look out for are the use of functions within the WHERE clause.

    0 讨论(0)
提交回复
热议问题