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

Indexing question Expand / Collapse
Author
Message
Posted Thursday, October 04, 2012 6:01 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, March 25, 2013 4:51 PM
Points: 41, Visits: 447
A basic question, i was analyzing an execution plan and found a keylookup using most of the CPU...So i tried to modify the current index to include the output columns of the keylookup so that i can avoid it, but i m not sure where else this index is being used....Does modifying this index by including a column, changes the performance of other queries???(I guess it may not decrease the performance because i am modifying the index only with included columns)
Post #1368782
Posted Thursday, October 04, 2012 6:10 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 5:35 PM
Points: 5,722, Visits: 6,194
You will slightly to heavily slow down any other query using that index, but that's not a bad thing depending on how large an item you stuffed in there.

At the leaf level of any non-clustered index, all included columns and necessary information to lookup the data off the clustered index is stored. The more data on the leaf, the more 8k pages the index needs to load.



- Craig Farrell

Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

For better assistance in answering your questions | Forum Netiquette
For index/tuning help, follow these directions. |Tally Tables

Twitter: @AnyWayDBA
Post #1368785
Posted Thursday, October 11, 2012 12:22 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Thursday, June 13, 2013 7:03 AM
Points: 2,562, Visits: 3,453
PradeepVallabh (10/4/2012)
i m not sure where else this index is being used....Does modifying this index by including a column, changes the performance of other queries
you can use sys.dm_dp_index_usage_stats dmv where you can see how frequently the mentioned index is being used then you can decide whether you can add the include part there or not


-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1371227
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse