I tried to use missing indexes DMV (sys.dm_db_missing_index_group_stats, sys.dm_db_missing_index_groups and sys.dm_db_missing_index_details etc) to get suggested missing indexes. I got two suggested missing indexes like these: CREATE INDEX Misssing_Index_1
ON table (column1, column2) INCLUDE (column3) and CREATE INDEX Misssing_Index_2 ON table (column1, column2) INCLUDE (column3, column4). I do need to set up index like this based on my system need. My question is - should I just create
the Missing_Index_2 as it includes column3? Why does DMV recommend two indexes if so? Thanks.
↧