Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Index Seek on Non Clustered Index cost is very high (92%) how to reduce this ? Expand / Collapse
Author
Message
Posted Monday, July 14, 2014 4:32 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Wednesday, November 12, 2014 2:19 AM
Points: 998, Visits: 296
Hi ALl,

Please give your suggestions to resolve this problem.

Index Seek on Non Clustered Index cost is very high (92%) how to reduce this ?
Post #1592124
Posted Monday, July 14, 2014 4:55 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:50 AM
Points: 40,432, Visits: 36,886
No way to answer with that limited information. Please at least post the execution plan.

First though, is that a problem? The costs have to add to 100% across the plan, so is that seek problematic? Is the query even problematic?



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1592133
Posted Thursday, July 24, 2014 4:37 PM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Yesterday @ 5:09 AM
Points: 56, Visits: 362
Add an unnecessary sort.
That should make the index seek use proportionately less cost of the entire query.
But, why would you want to?
Post #1596040
Posted Thursday, July 24, 2014 6:08 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Yesterday @ 8:51 PM
Points: 35,606, Visits: 32,190
kbhanu15 (7/14/2014)
Hi ALl,

Please give your suggestions to resolve this problem.

Index Seek on Non Clustered Index cost is very high (92%) how to reduce this ?


I've run into this in the past. Like Gail says, not enough information to call out a fix but, if it were me, I'd check the properties of the Index Seek in the execution plan and see how many times it's executing. If it's doing 1 seek per row instead of a single seek and a range scan, that could be one of the problems.


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1596052
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse