Reindex tables and update statistics

  • I've been digging in the database that supports our software because it's always been known for having slow performance. I've looked through the daily maintenance plan, and I see that there is normal stuff such as shrinking the database, and reindexing the tables and such, but I can't find update statistics anywhere. I was under the impression that if you don't update statistics after reindex, then database does not know how to use the new indexes very well, and it does almost no good. Can anyone please explain how the whole process works, and what would be the downside of reindexing the tables with out updating statistics. The command they use for reindexing is "dbcc dbreindex"

  • Just did some more checking, and it looks like database has Auto Update Statistics set True, so this may not be an issue.

  • Shrinking the database, bad idea, especially if it is done after the index rebuild. Index rebuild rebuilds the statistics for the index. You should have a process the rebuilds statistics on a periodic basis, preferably with a full scan.

    If you are using a maintenance plan, you don't have the granularity you really need. You should check out the routines available here: http://ola.hallengren.com/.

  • An index rebuild updates the stats associated with that index as part of the rebuild operation

    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
  • DVSQL (1/18/2013)


    I see that there is normal stuff such as shrinking the database

    Shrinking the database is not normal maintenance stuff.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

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

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