You have been using EPM for a while and recently started experiencing some performance issues? Perhaps the projects are taking longer to save or perhaps certain Project Centre views have stopped displaying projects….you get a message indicating ‘…there are no projects to display’. The reason may be fragmentation of database table indexes.
Over time you will experience database performance issues if they not properly maintained on a regular basis. Some of things to bear in mind when setting up the database maintenance plans are mentioned here.
You can quickly indentify if there is any problem by running the following SQL query on the Draft and Published databases to determine the index fragmentation in the key tables.
Note: Feel free to run the query for other key tables if you wish for example msp_tasks, msp_assignments. In my experience the key indicator of problems has always been the index fragmentation of ‘msp_projects’ table.
DBCC SHOWCONTIG (msp_projects) |
And, run the following query on the Reporting database;
DBCC SHOWCONTIG (msp_epmproject) |
Review of the result of the queries. The following example will help those who are not SQL DBAs/GURU!
Example output of the above query is shown below;
- Pages Scanned................................: 333557 |
A low percentage for scan density is bad. A high percentage for logical scan fragmentation is bad. Further info on this can be found in the SQL online book.
To resolve the issue run the following queries on all the Project Server Databases. Rebuild Indexes in databases followed by updating Statistics. See below.
Note: If you are using project workspaces, then suggest you do the same on the content database(s).
Step (1) – Rebuild Index in Database
---T-SQL script which will rebuild each index of all tables of any particular database. DECLARE @TableName VARCHAR(255) |
Note: Keep the Fill Factor values between 75 and 100. I tend to leave this at 90 and works for me well. There are other considerations but I won’t bore you with all the superfluous details.
Step (2) – Update Statistics on Databases
sp_updatestats |
Hope these precise steps helps all the EPM application administrators who have to double up as SQL DB administrators for their EPM deployment.
Note: Thoroughly test all changes on your test/development system prior to applying on live/production system.
Mistry,
ReplyDeleteIt’s very useful information. Thanks for sharing.
--Chak
Hi Chak;
ReplyDeleteGlad this is useful.
You might also be interested in the following;
EPM2007 Project Archiving – Recommended Steps (OOB)
http://microsoftepmsolution.blogspot.com/2009/06/epm2007-project-archiving-recommended.html
http://microsoftepmsolution.blogspot.com/2009/06/epm2007-project-archiving-recommended_18.html
EPM2007 Project Restore– Recommended Steps (OOB)
http://microsoftepmsolution.blogspot.com/2009/06/epm2007-project-restore-recommended.html
Project and Workspace Archiving & Restore – Cool custom tools!!
http://microsoftepmsolution.blogspot.com/2009/06/project-and-workspace-archiving-restore.html
Regards
PJ