fragmentation question

  • i have a quick question about internal fragmentation

    the book explanation is that DML statement cause internal fragmentation, i can understand how UPDATE and DELETE leads to fragmentation but i don't understand how INSERT does

    can anyone please explain this to me

  • Depends what the book means by 'internal fragmentation'. It's a poorly defined term that has been used for different things by different people.

    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
  • the fragmentation that is caused by pages not being filled

  • Better term for that is 'low page density'.

    Inserts and updates can cause page splits, which results in pages half full. Deletes can leave empty gaps on pages where the row used to be.

    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

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

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