During production hours is it recommended to Rebuild SQL Server indexes using the ONLINE option?

Rebuilding SQL Server indexes using the ONLINE option.
Using this option can I reindex the tables during production? What SQL server versions support ONLINE index option? Is any disadvantage using the online indexing?
Varshini SAsked:
Who is Participating?
 
Raja Jegan RConnect With a Mentor SQL Server DBA & ArchitectCommented:
ONLINE Index Rebuild is supported only in Enterprise edition of SQL Server.

ONLINE Index Rebuild is recommended only on servers which are available 24/7 without any downtime or minimal operations per day.
If you have a maintenance time every day, then it is recommended to go with OFFLINE index rebuilds as it will be faster by blocking the entire table for the entire time taken during Rebuild.
ONLINE Index Rebuilds will have very minimal blocking while index rebuilds are happening and in the process it will take longer time compared to OFFLINE index rebuilds.
0
 
Geert GOracle dbaCommented:
why do you need to rebuild the indexes ?
0
 
Varshini SAuthor Commented:
An index should be rebuild when index fragmentation is great than 40%. An index should be reorganized when index fragmentation is between 10% to 40%
0
 
Vitor MontalvãoConnect With a Mentor MSSQL Senior EngineerCommented:
Avoid any maintenance task during Production hours. This is the rule #1, #2 and #3 if you want to keep your system stable.
Use the ONLINE option only for urgency cases. Otherwise use OFFLINE and run the task outside of Production hours.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.