我测试非聚簇索引的好处。如何执行非聚簇索引查找而不是聚簇索引扫描
我用分贝的AdventureWorks 当我执行查询:
SELECT [address].City, [address].[AddressLine1]
FROM [AdventureWorks].[Person].[Address] as [address]
WHERE [address].City = 'Seattle'
我在执行计划选项卡
/*
Missing Index Details from SQLQuery3.sql -
The Query Processor estimates that implementing the following index could improve the query cost by 97.9636%.
*/
/*
USE [AdventureWorks]
GO
CREATE NONCLUSTERED INDEX [<Name of Missing Index, sysname,>]
ON [Person].[Address] ([City])
GO
*/
我在执行简单的标签图标看的见“聚集索引扫描”和我知道这是不好的,因为指数寻求更好
但是,当我执行查询
USE [AdventureWorks]
GO
CREATE NONCLUSTERED INDEX CityIdx
ON [Person].[Address] ([City])
GO
我仍然看到在执行平原选项卡“聚集索引扫描”。为什么不“聚集索引查找”?它应该是“聚集索引查找”吗?在哪些情况下,它应该是“聚集索引查找”。
是“聚集”,而不是“分类”。 –
谢谢我修复了这些错别字 – testCoder