I am referring the Unused Index Script blog.
I got to know that if Seek = 0
, Scan = 0
, Lookup = 0
, User Update = 0
then we should delete index as it is not needed.
The unused script gives me many indexes but should I delete all those indexes? Can you please help me to understand to identify actual unused index from the given script.
I would like to know the importance between UserSeek
, UserScans
, UserLookups
, UserUpdates
column before I delete.
The
seeks
,scans
andlookups
are read operations which are beneficial to query performance. Theupdates
are inserts into or updates to the index. These updates are considered a negative side affect of indexing.The first and only rule in the black art of indexing is: take a backup of the indexes before you change them. Just script them out and save them for later. Be sure to date the file so you can correlate any database performance degradation.
A few things to understand:
So again, backup the indexes before you remove anything.