r/SQLServer • u/dfurmanms Microsoft Employee • Mar 18 '26
Community Share Introducing Automatic Index Compaction
We just released a MSSQL engine feature that might just make the whole index maintenance debate obsolete (or should at least make it less boring). Auto index compaction is now in public preview in Azure SQL and Fabric SQL.
Announcement blog: Stop defragmenting and start living: introducing auto index compaction.
Documentation (with an FAQ): Automatic Index Compaction | Microsoft Learn.
Would you use this instead of your own index maintenance? Tell us what you think.
55
Upvotes
View all comments
Show parent comment
7
u/dfurmanms Microsoft Employee Mar 18 '26
There is no reason for us to keep this cloud-only.
The size of the table doesn't matter, it only acts on recently modified pages, so it's lightweight.
Compaction is async in background as part of PVS cleanup that runs anyway, so no direct impact to transaction latency.