Hi @Avyayah ,
The index rebuild operation runs by default in a single long-running transaction, that prevents the Transaction Log space reuse while rebuilding a large index.
Switching to the BULK_LOGGED recovery mode while doing an index rebuild operation will reduce the amount of transaction log generated. If you're considering using the BULK_LOGGED recovery mode, beware that you lose the ability to do point-in-time recovery to ANY point covered by a transaction log backup that contains even a single minimally-logged operation. The operations you should perform if you're going to do this are:
- In FULL recovery mode, take log backup immediately before switching to BULK_LOGGED.
- Switch to BULK_LOGGED and do the index rebuild.
- Switch back to FULL and immediately take a log backup.
Please refer to this article which might help.
Best Regards,
Amelia
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread