SQL Server Plans : difference between Index Scan / Index Seek

前端 未结 6 1905
攒了一身酷
攒了一身酷 2020-12-04 09:20

In a SQL Server Execution plan what is the difference between an Index Scan and an Index Seek

I\'m on SQL Server 2005.

6条回答
  •  情深已故
    2020-12-04 10:11

    With an Index Scan, all rows in the index are being scanned to find a matching row. This can be efficient for small tables. With an Index Seek, it only needs to touch the rows that actually meet the criteria and so is generally more performant

提交回复
热议问题