Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, August 27, 2015 3:32 AM
Points: 1,085, Visits: 324
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: Yesterday @ 4:30 PM
Points: 44,477, Visits: 42,082
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, MVP, M.Sc (Comp Sci)
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


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Today @ 3:30 AM
Points: 465, Visits: 1,518
Add an unnecessary sort.
That should make the index seek use proportionately less cost of the entire query.
But, why would you want to?


http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
http://sqlinthewild.co.za/index.php/category/sql-server/performance/
Post #1596040
Posted Thursday, July 24, 2014 6:08 PM


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 @ 9:37 AM
Points: 40,377, Visits: 37,584
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."

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

Add to briefcase

Permissions Expand / Collapse