简体   繁体   中英

How to reduce Nonclustered index scan cost

I have a query that is running on MS Access and the NonClustered scan in the execution plan has a cost of 100% in our SSMS. This query has the second highes processing time, which means this reduces our applications speed when this is executed. I am wondering if anyone knows what i can do to reduce the cost% for this Nonclustered index? Below is the query that is calling this table, the indexed for this table and the execution plan.

SELECT "ContactID" ,"ContactName"  FROM "dbo"."Contacts" 

Here the execution plan:

在此处输入图片说明

Here are the indexes that are in the table that this slow query is referencing:

在此处输入图片说明

您的查询没有WHERE子句,因此无法避免扫描整个表,因为您要求返回每一行。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM