maintenance-plan

Reorganise index vs Rebuild Index in Sql Server Maintenance plan

人走茶凉 提交于 2019-11-29 22:12:17
In the SSW rules to better SQL Server Database there is an example of a full database maintenance plan: SSW . In the example they run both a Reorganize Index and then a Rebuild Index and then Update Statistics. Is there any point to this? I thought Reorganize Index was a fast but less effective version of Rebuild Index? and that an index rebuild would also update the statistics automatically (on the clustered index at least). Llew Doing a REORGANIZE and then a REBUILD on the same indexes is pointless, as any changes by the REORGANIZE would be lost by doing the REBUILD . Worse than that is that

How often should the indexes be rebuilt in our SQL Server database?

你。 提交于 2019-11-28 16:14:05
Currently our database has size 10 GB and is growing by around 3 GB per month. Often I hear that one should from time to time rebuild the indexes, to improve the query execution time. So how often should I rebuild the indexes in the given scenario? marc_s There's a general consensus that you should reorganize ("defragment") your indices as soon as index fragmentation reaches more than 5 (sometimes 10%), and you should rebuild them completely when it goes beyond 30% (at least that's the numbers I've heard advocated in a lot of places). Michelle Ufford (a.k.a. "SQL Fool") has an automated index