microsoft / tigertoolbox

Toolbox repository for Tiger team
http://aka.ms/sqlserverteam
Other
1.45k stars 734 forks source link

Not working on large databases #311

Open eliasbalasis opened 3 days ago

eliasbalasis commented 3 days ago

It was suggested to me that the solution does not require applications downtime.

However it does not seem to be working well in Azure SQL and databases with tables having more than 1 billion of small length records (often more than 2 billion)

The following command seems to be responsible for deadlock conditions during its run among other failures.

EXEC dbo.usp_AdaptiveIndexDefrag @Exec_Print=1 , @printCmds=1 , @rebuildThreshold=100 , @rebuildThreshold_cs=100 , @updateStats=1 , @scanMode = 'DETAILED' , @onlineRebuild=1 , @minFragmentation=5

Has anyone experienced anything similar?