File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 4949 Even though their defined structure appears to be covered, their physical structure is not.
5050*/
5151
52- /* Considerations:
52+ /* Considerations / TODO :
5353 - Improve ability to compare the entire index definition. Currently, only keys and includes are compared.
5454 However, things like...padding, fillfactor and other settings are ignored.
55+ - Add list of column differences for mergeable indexes. For now it's just a list of column ID's which isnt very helpful.
56+ - Should clustered vs nonclustered and/or unique vs non-unique duplicate matches indexes be classified as "duplicate"
57+ or overlapping? (currently classified as overlapping)
5558*/
5659-- ----------------------------------------------------------------------------
5760
214217 INTO #idx_col_cnt
215218 FROM #target_indexes i
216219 JOIN #idx_cols ic ON ic.[object_id] = i.[object_id] AND ic .index_id = i .index_id
217- WHERE ic .rn = 1
220+ WHERE ic .rn = 1
218221 GROUP BY i.[object_id], i .index_id , i .IndexType ;
219222
220223 IF OBJECT_ID (' tempdb..#obj_col_cnt' ,' U' ) IS NOT NULL DROP TABLE #obj_col_cnt; -- SELECT * FROM #obj_col_cnt
You can’t perform that action at this time.
0 commit comments