Backtrack:  
 
by lunarg on June 8th 2015, at 09:47

Maintaining indexes on your table is an important part of keeping your database healthy and its performance adequate. There are two maintenance operations for any index: rebuilding and reorganizing. Both operations were designed to get rid of index fragmentation, but differ in how this is done.

 RebuildReorganize
What it doesDrops the existing index and recreates it from scratch.Physically reorganizes the leaf nodes of the index.
When to useIndex fragmentation >= 40%Index fragmentation >= 10% and < 40%
Impact on systemHigh.

Database will be offline during process, unless you have Enterprise Edition and have enabled the ONLINE option. Online rebuild requires more resources than offline rebuild.
High.

Reorganize runs on online database.
Common optionsProcess can be run on all indexes of all tables on a database, or can be narrowed down to specific databases, specific tables, or even a single index.
Function-specific optionsEnteprise Edition has an option available to perform an online rebuild of the index. This keeps the index available during rebuild, allowing database access.N/A
 
 
« December 2024»
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293031    
 
Links
 
Quote
« If the batteries of a TV remote run out, why do we press the buttons so much harder? »