January 18, 2013 at 6:39 pm
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"
January 18, 2013 at 6:58 pm
Just did some more checking, and it looks like database has Auto Update Statistics set True, so this may not be an issue.
January 18, 2013 at 7:11 pm
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/.
January 19, 2013 at 2:39 am
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
January 21, 2013 at 5:12 am
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply