UsedExtents appears unchanged after row deletion

  • Evening.

    Executing "USE MYDB DBCC SHOWFILESTATS" on a SQL 2005 DB shows me:

    10682368 TotalExtents

    10298044 UsedExtents

    The DB in question contains 90% of data in a single table of 1,000,000,000 ish rows.

    After 12 hours of a delete process whereby 10% (100,000,00 rows ish) were removed my UsedExtents appears to be more or less the same (few inserts in this time).

    -DB is manually grown periodically.

    -I never use SHRINK.

    I could have sworn in the past this delete process reduced UsedExtents.

    Thank you in advance for an explanation.

    Scott

  • Rebuild the clustered index.

    You could have mostly empty pages and/or empty pages in allocated dedicated extents.

    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 you.

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

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