Difference between Index defrag and index rebuild

Difference between Index defrag and index rebuild
When you create an index in the database, the index information used  by queries is stored in index pages. The sequential index pages are chained together by pointers from one page to the next. When changes are made to the data that affect the index, the information in the index can become scattered in the database. Rebuilding an index reorganizes the storage of the index data (and table data in the case of a clustered index) to remove fragmentation. This can improve disk performance by reducing the number of page reads required to obtain
the requested data

DBCC INDEXDEFRAG - Defragments clustered and secondary indexes of the
specified table or view.

No comments:

 
Top Blogs