Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Depending on the policy settings you select, SQL Defrag Manager defragments tables and indexes in one of the following ways: 

Rebuild

The To rebuild the indexes on tables, the rebuild defragmentation type option uses the DBCC DBREINDEX command to rebuild the indexes on the tables. ALTER INDEX REBUILD command for SQL Server 2005 and newer versions. For SQL Server 2000 it uses DBCC DBREINDEX.  The rebuild operation creates new, contiguous pages. SQL Server 2005/2008 allows the option to Rebuild Online, which allows access to the tables before the operation is finished. However, choosing to rebuild online requires more resources (disk space, CPU, memory), and may slow performance. 

Reorganize

The reorganize defragmentation type uses the DBCC INDEXDEFRAG command to To reorder the leaf pages of the index in-place, the reorganize defragmentation option uses the  ALTER INDEX REORGANIZE command for SQL Server 2005 and newer versions. For SQL Server 2000 it uses  DBCC INDEXDEFRAG . This process is similar to a bubble sort. Although the pages are physically reordered, they may not be contiguous within the data file. This issue can cause interleaved indexes, which need to be rebuilt to store them in contiguous pages.

Info

Online index operations are available only in SQL Server DatacenterData center, Enterprise, Developer, and Evaluation editions.

...

Interleaving occurs when an index extent, which is a group of eight index pages, is not physically contiguous because an extent for another index is intermingled with it. This condition can happen even when there is no logical fragmentation in the index. Although the pages may be physically and logically ordered, they are not necessarily contiguous. Switching between extents can impact performance as data access is inefficient. To resolve this issue, use SQL Defrag Manager to rebuild the indexes to store them in contiguous pages and reduce the need to switch between extents.



Scroll pdf ignore
Newtabfooter
aliasIDERA
urlhttp://www.idera.com
| 

Need more help? Search the IDERA Customer Support Portal

...

Newtabfooter
aliasProducts
urlhttps://www.idera.com/productssolutions/sqlserver
Newtabfooter
aliasPurchase
urlhttps://www.idera.com/buynow/onlinestore
|
Newtabfooter
aliasSupport
urlhttps://idera.secure.force.com/
|
Newtabfooter
aliasCommunity
urlhttp://community.idera.com
|
Newtabfooter
aliasResources
urlhttp://www.idera.com/resourcecentral
|
Newtabfooter
aliasAbout Us
urlhttp://www.idera.com/about/aboutus
|
Newtabfooter
aliasLegal
urlhttps://www.idera.com/legal/termsofuse

...