June 16, 2014 at 10:15 am
On certain tables the ALTER INDEX REBUILD freezes. I check the percent_complete and it is stuck at 0.
Any suggestions? Maybe DROP and CREATE the Indexes for those Tables?
ALTER INDEX [IDX_OUTPUT_DIMENSION_POLICY_ID] ON [RDB].[OUTPUT_DIMENSION] REBUILD PARTITION = ALL WITH (FILLFACTOR = 100, PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = ON, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, ONLINE = ON, SORT_IN_TEMPDB = ON )
GO
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 16, 2014 at 1:05 pm
Are there waits associated with the process? It's likely that it's just taking a long time or that it's blocked.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 16, 2014 at 1:23 pm
Wait Types are mostly CXPACKET. Also getting SOS_SCHEDULER_YIELD.
There is definitely no blocking going on.
Thanks!
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 16, 2014 at 1:33 pm
One of the just worked. Started another and I'm getting a LOGBUFFER WAIT TYPE.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 16, 2014 at 1:48 pm
It is moving very slowly on a 30 million record table.
Thanks. 🙂
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 16, 2014 at 3:24 pm
With log buffer waits, it's hitting conflicts with other processes in and around the log. It might just be slow.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
June 16, 2014 at 3:30 pm
Grant Fritchey (6/16/2014)
With log buffer waits, it's hitting conflicts with other processes in and around the log. It might just be slow.
Thanks for the insight.:-)
It's moving fast unlike this weekend and today.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply