Defragmentation in Sql Server 2005?

  • Hi

    What is Defragmentation ?

    Subha

  • The process of removing fragmentation from an index so that, in theory, scans of the index perform better.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • thank u, Gail......

  • Hi Gail,

    What is the use of defragmenation ?

    In which situvation we have to go defragmentation.

    can you please explaine bit clearly..

    tx

    subu

  • Indexes are built using extents (allocations of pages ) in the db file. As the index is built, it gets new pages from the file that are not necessarily contiguous, or near each other on disk.

    This means that to read an index, the head must move back and forth to find all the pages, and that slows performance. It can substantially slow performance in some cases.

    Rebuilding an index moves all the pages to a contiguous area by allocating new pages and building a new index. When that is done, the old index is removed.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply