-- Use `ALTER INDEX REORGANIZE`, the replacement for `DBCC INDEXDEFRAG`, to reorder the leaf level pages of the index in a logical order. Because this is an online operation, the index is available while the statement is running. The operation can also be interrupted without losing work already completed. This method compacts pages and can increase page density up to the fill factor, but it doesn't move rows off already-full pages to create free space according to a lower fill factor. Compared to rebuilding an index with a lower fill factor, `ALTER INDEX REORGANIZE` might cause more page splits for some workloads.
0 commit comments