10.07.2015 Views

Best Practices for Running Dassault Systèmes ENOVIA ... - Microsoft

Best Practices for Running Dassault Systèmes ENOVIA ... - Microsoft

Best Practices for Running Dassault Systèmes ENOVIA ... - Microsoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

physical layout of the index. However, the most important result column <strong>for</strong> trackingfragmentation is avg_fragmentation_in_percent. This column indicates how fragmented theindex is on disk. A low number means low fragmentation (good); a high number means highfragmentation (bad).For example, this query returns index physical stats <strong>for</strong> all the indexes in the current database:SELECT OBJECT_NAME(object_id),index_id,page_count,index_type_desc,avg_fragmentation_in_percent,fragment_countFROM sys.dm_db_index_physical_stats(db_id(),NULL,NULL,NULL,'LIMITED')To identify the indexes by name, you can join against the sys.indexes system view.Similar in<strong>for</strong>mation is also available in the Standard Reports in SSMS. To view this report, rightclickthe <strong>ENOVIA</strong> database, select Reports > Standard Reports, and select the Index PhysicalStatistics report on the fly-out menu.Table 10 provides general guidelines <strong>for</strong> interpreting the avg_fragmentation_in_percent value.Table 10: Guidelines <strong>for</strong> handling fragmentationFragmentationRecommended Action< 5% Do nothing5% to 30% Reorganize withALTER INDEX REORGANIZE> 50% Rebuild withALTER INDEX REBUILD WITH (ONLINE=ON)orCREATE INDEX with DROP_EXISTING=ONReorganizing an index does not block user access to the index while underway. However,rebuilding or re-creating the index does prevent user access to the index. The exception to this isif the ALTER INDEX REBUILD statement is used with the ONLINE = ON option. Note that onlineindex rebuild requires the Enterprise edition of SQL Server 2008.Periodically checking index fragmentation and taking any necessary corrective action isimportant to maintaining the per<strong>for</strong>mance of your <strong>ENOVIA</strong> deployment. The rate at which33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!