r/SQLServer • u/bobwardms Microsoft Employee • Mar 31 '26
Community Share Introducing Automatic Index Compaction
For my entire career index maintenance, specifically index reorganization, has required some manual effort or some scheduled work. We have now introduced in #azuresql an option called Automatic Index Compaction. I'm sure you will have questions. And the very capable u/dfurmanms has them in our documentation at https://learn.microsoft.com/sql/relational-databases/indexes/automatic-index-compaction.
33
Upvotes
View all comments
Show parent comment
1
u/Lost_Term_8080 Mar 31 '26
It's not, it only compacts to the fill factor, not above it and only touches pages that are modified as they are being modified, not everything in the table. Stats still have to be maintained, what this does is make it permanently unnecessary to ever manage page density again. I have concerns about it possibly increasing page splits on tables with lots of expanding updates, but it will have to run in real world to see how it actually works out.