Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

ALTER INDEX REBUILD use of Tx Logs

$
0
0
HiWe have a very big table with a clustered index @1Tb.Database is currently in simple recovery mode, and I can rebuild the CI in about 30 mins, and there is little impact on the Tx Log wrt to size, i.e. little growth. There is growth in the datafiles while the index is rebuilt, which is what I would expect while SQL makes a copy of the index.When I put the database into FULL recovery mode, the rebuild time extends to 120 mins (which is OK), but the Tx Log grows to 1Tb, which is not going to be OK!I would have expected the difference in the Tx log behavior between SIMPLE and FULL recovery mode to just be how the log space is freed after the rebuild completes. Is SQL storing all the data in the Tx log for rollforward/rollback activity?Can somebody explain this behaviour?Thanks in advance.

Viewing all articles
Browse latest Browse all 6525

Trending Articles