SQL Server - how to determine if indexes aren't being used?

前端 未结 4 1192
感动是毒
感动是毒 2021-02-14 23:56

I have a high-demand transactional database that I think is over-indexed. Originally, it didn\'t have any indexes at all, so adding some for common processes made a huge differe

4条回答
  •  名媛妹妹
    2021-02-15 00:24

    Look at the number of user seeks/scans/lookups and last user seek/scan/lookup in sys.dm_db_index_usage_stats. These stats are reset at server start up, so you'd have to check after the server was up and running a relevant load for enought time.

提交回复
热议问题