Takes time to Save and publish

Project server 2010 + SQL server 2005 sp3
When the users make the required changes and when they try to save and publish it takes them around 15 seconds to complete.
What would cause that to happen, and how can one improve the performance?
Satyam.

Let's try to look at it in a different way! When you save and publish a project there will be a series of job which will be triggered in the queue like Project Save from Project Professional, Project Publish, Reporting Project Publish etc.
Please let us know which among this is taking time.
[Please note some of the jobs gets pushed into the queue at the same time so I would suggest that you monitor the queue as soon as the save and publish is triggered and track the time taken for the jobs to complete]
Below I have also listed some of the recommended DB maintenance queries
1. Check size of Shadow Tables : http://support.microsoft.com/kb/2598007
  i. Run the below query on both the Draft and Published databases
select count(*) from MSP_TASK_CUSTOM_FIELD_VALUES_SHADOW 
select count(*) from MSP_ASSN_CUSTOM_FIELD_VALUES_SHADOW 
select count(*) from MSP_PROJ_RES_CUSTOM_FIELD_VALUES_SHADOW
select count(*) from MSP_PROJ_CUSTOM_FIELD_VALUES_SHADOW 
select count(*) from MSP_PROJ_CUSTOM_FIELD_VALUES_SHADOW 
  ii. Run the below query on Published database only
select count(*) from MSP_RES_CUSTOM_FIELD_VALUES_SHADOW
2. Update Statistics: Updates query optimization statistics on a table or indexed view. By default, the query optimizer already updates statistics as necessary to improve the query plan; in some cases you can improve query performance by using UPDATE STATISTICS
or the stored procedure sp_updatestats to update statistics more frequently than the default updates (References: http://technet.microsoft.com/en-us/library/ms187348.aspx, http://blogs.technet.com/b/projectadministration/archive/2009/12/04/sql-server-settings-for-performance-recommendations.aspx) 
Run the below query on all the four Project databases
sp_updatestats
3. Defragment all the four Project Server databases by running the below query on each of the databases to help improve the performance(This mentions Project 2007 bus is applicable for Project 2010 as well): http://support.microsoft.com/kb/943345
SET NOCOUNT ON
    DECLARE @objectid int
    DECLARE @indexid int
    DECLARE @command varchar(8000)
    DECLARE @baseCommand varchar(8000)
    DECLARE @schemaname sysname
    DECLARE @objectname sysname
    DECLARE @indexname sysname
    DECLARE @currentDdbId int
    SELECT @currentDdbId = DB_ID()
    PRINT CONVERT(nvarchar, GETDATE(), 126) + ': Starting'
    -- Loop over each of the indices
    DECLARE indexesToDefrag CURSOR FOR 
    SELECT 
        i.object_id, 
        i.index_id, 
        i.name
    FROM 
        sys.indexes AS i
    INNER JOIN 
        sys.objects AS o
    ON
        i.object_id = o.object_id
    WHERE 
        i.index_id > 0 AND
        o.type = 'U'
    OPEN indexesToDefrag
    -- Loop through the partitions.
    FETCH NEXT
    FROM
        indexesToDefrag
    INTO 
        @objectid, 
        @indexid,
        @indexname
    WHILE @@FETCH_STATUS = 0
    BEGIN
        -- Lookup the name of the index
        SELECT 
            @schemaname = s.name
        FROM 
            sys.objects AS o
        JOIN 
            sys.schemas AS s
        ON
            s.schema_id = o.schema_id
        WHERE
            o.object_id = @objectid
        PRINT CONVERT(nvarchar, GETDATE(), 126) + ': ' + @schemaname + '.' + @indexname + ' is now being rebuilt.'
        -- Fragmentation is bad enough that it will be more efficient to rebuild the index
        SELECT @baseCommand = 
            ' ALTER INDEX ' + 
                @indexname +
            ' ON ' + 
                @schemaname + '.' + object_name(@objectid) + 
            ' REBUILD WITH (FILLFACTOR = 80, ONLINE = '
        -- Use dynamic sql so this compiles in SQL 2000
        SELECT @command =
            ' BEGIN TRY ' + 
               @baseCommand + 'ON) ' +
            ' END TRY ' +
            ' BEGIN CATCH ' +
               -- Indices with image-like columns can't be rebuild online, so go offline
               @baseCommand + 'OFF) ' +
            ' END CATCH '
        PRINT CONVERT(nvarchar, GETDATE(), 126) + ': Rebuilding'
        EXEC (@command)
        PRINT CONVERT(nvarchar, GETDATE(), 126) + ': Done'
        FETCH NEXT FROM indexesToDefrag INTO @objectid, @indexid, @indexname
    END
    CLOSE indexesToDefrag
    DEALLOCATE indexesToDefrag
4. Recompile Stored Procedures: Empty the stored execution plans for the below stored procedures from the cache and then recompile them so that the new execution plan get things working faster (Reference# http://blogs.msdn.com/b/brismith/archive/2012/09/19/when-your-project-server-queue-slows-down.aspx)
Draft DB 
EXEC Sp_recompile MSP_ProjQ_Lock_Next_Available_Group 
EXEC Sp_recompile MSP_ProjQ_Get_Status_Of_Jobs_List 
Published DB 
EXEC Sp_recompile MSP_TimesheetQ_Get_Status_Of_Jobs_List 
EXEC Sp_recompile MSP_TimesheetQ_Lock_Next_Available_Group
Cheers! Happy troubleshooting !!! Dinesh S. Rai - MSFT Enterprise Project Management Please click Mark As Answer; if a post solves your problem or Vote As Helpful if a post has been useful to you. This can be beneficial to other community members reading
the thread.

Similar Messages

  • All design programs running extremely slow and takes forever to save and sometimes shuts down randomly?

    Ok so  I'm a design student at a community college (about to graduate soon and will be continuing on getting my BFA) I have all of the creative cloud suite. I have Illustrator, Photoshop, Lightroom, InDesign, etc. Recently I started having problems with all of the programs. Whenever I work in the programs they would run extremely slow. Recently, I tried to save a .eps file that was only about 1.2 GB and it took me an hour to save, and this was when I was working off of my computer desktop. When I place the .eps file in Indesign, everything would go blank and it would freeze up. Also I had an error sign popping up from InDesign saying "out of memory". Im not sure if that is related to my computer's hard drive or indesign itself. I just started using creative suite so the creative suite is pretty new to me. Sometimes in Indesign when I do the Command+w to preview the whole project, it would be completely black and showing nothing and I would hit escape and the whole software screws up. Then I would do a force quit on the software and then Indesign would say there was a serious error and must shut down. That error message has been popping up several times now. I also talked to Apple support and they suggested me doing a Repair disk utility (which I am currently doing right now) and also recommended me contacting Adobe since they know their software. I checked software to see if there is any updates that is needed but everything is up to date. I'm not quite sure why its acting like this so I'm reaching out both to Apple and Adobe to see if both can help me solve the problem. If anybody had experienced this problem before and could help me troubleshoot this issue that would be great.

    I installed the creative suite about a year ago, and this just started happening last weekend. I didn't think it would be a problem and that it would last for a day since I was working on InDesign all day and Illustrator and it usually goes away after I finish using the programs. But this has been occurring for about a week now and has not gone away. and yes the other programs are running slow. I was trying to resize some images for a client and Photoshop was acting extremely slow  when I was trying to resize the image and also place an image into a 8x10 document in Photoshop. I'm not sure how to find my system specifications.
    All design programs running extremely slow and takes forever to save and sometimes shuts down randomly? 

  • Welcome window problem.  appears every time i save and close a file of photoshop

    How to fix a bug regarding welcome window. this window appears every time i save and close a file of photoshop, its started after the last update 2014.2.0

    See this document: Troubleshoot Welcome Screen in Photoshop
    Scroll all the way down to the bottom. There's a check box "Don't Show Welcome Screen Again"
    You can relaunch the screen at a later date by selecting Help>Welcome Screen...
    ~ Arpit

  • ISR Forms takes lot of time to save and activate

    Folks,
    We are developing ISR forms and it is taking lot time to activate & save the forms in SFP transaction.
    Thanks,
    Manish

    By loading i mean, the form takes time to open up in the Forms Builder .
    Bibin

  • Difference between save and publish on project professional 2013

    Dear Barbara
    What's difference between save and/or publish tasks from project professional 2013 onto project server 2013 integrated with TFS?
    For me its the same, if you exclude the integration with TFS in this scenario, that demands publishing, the tasks will be saved in project server anyway.
    Its that right? Thank you.
    Adauto

    hi Adauto,
    As a project owner when you create project plan from PWA or from Project Professional Once you save it means it will go to draft database and will be available to you in the server but you can not see it onto Project center.
    Once you Click on Publish then  project get publish and sits in publish database at the same time it will sync reporting database too. Once project get Publish then only all the team member who are associated with project will be able to see the project
    in project center including you .
    Also Users who are having either same RBS assigned to them or heigher to you will be able to see the project onto the project center.
    Also All the resource will get notified and task assignment will be assigned to team members.
    This is a same case for Project server with TFS integration and normal project server without TFS integration
    Main Usability of Save is :
    As a Project owner when you start Project scheduling you take time to finish it so everyday you can save it so that next day you can resume your work but in the middle of the scheduling work you wont want to show the data to your organization until- unless
    you give it final touch .Once you complete it then only publish it so that it would be available to team members.
    kirtesh
    kirtesh

  • Same EPM Excel Report takes time to open and refresh on 1 system while it opens and refreshes faster on other system

    Hi All ,
    I am facing an issue where the EPM Excel Templates on SERVER ROOT FOLDER take time to open on 1 system . It also takes great amount of time to REFRESH . While on an another system the same Report opens rather quickly and refreshes also quickly .
    Regards,
    SHUBHAM

    Hi Shubham,
    Now day excel problems are due to some MS update.  Not sure but  have a look at below note.
    2107965 - Issues in EPM Add-in after installing Microsoft updates

  • Message Mapping takes long time to save and activate

    I have one problem in my present interface...
    the message structure is large and when mappping is over and I click save button it will take long time for activation..
    should I change any parameter in admin? or is it bcos of java web start version?
    need help
    - Teja

    Hi
    Can you share the Version History of the Component?
    Regards
    Pothana

  • I remove a disk from excluded items in time machine, save, and it does not remove it. Why

    after the upgrade, time machine cannot use the extern disk in the backup.
    It naturally excludes the external disk. I used to be able to remove the exclusion. After time machine I cannot.
    The time machine preference is problematic. It shows the disk as remove, and calculated the space it will take to backup. However the save button undoes the selection,,,,, without showing that.

    Thank for the link. I am fully aware of this problem. However this link does not provide a solution to my problem.
    I did all the things it suggested. I went over every detail with Western Digital tech support. Once the WD software is removed. And the firmware upgraded. And formated with Apple Format, and partitioned, and GUID and and and. I can transfer files without any difficulty in all circumstances; BUT  ONE AND THAT IS WORKING WITH TIME MACHINE NOT ALLOWING THE BACKUP OF THE DATA ON THE WD DRIVE. 
    This is a Time Machine program error. If the disk exist for all other purpose, it should exist for Time Machine. It is a error to for Time Machine preferences to reverse a user selection. It needs to be fixed.

  • Do not have privileges to save and publish on iWeb :(

    I am a newer employee at my company and we publish podcasts. Unfortunately, my iMac account can not publish to iWeb. Here are the messages I recieve when I try to publish... first:
    SAVE FAILED
    You do not have permission to make changes to that file
    Then it says:
    PUBLISH ERROR:
    An Error occured while publishing "The File name"
    What is the problem? I also cannot save the uploaded podcast either. I have talked to the Mac people and they are stumped... they tell me I have to remove and reinstall Mac OSX, wiping out my hardrive in process.
    I was able to post podcasts on the previous employee's account on this computer, but I had to clear out all of the old podcasts (thanks to a tech support mistake) to do so, and I am fearful of having that happening again. Thanks

    Have you set the .Mac preferences in your System preferences to the other account and the correct password?

  • Project server 2013 csom save and publish

    Hi,
    In Project server 2013 PWA when you edit project custom fields and save the queue job execute the following jobs: 
    - "Project Update from PSI"
    - "Project Publish Summary"
    - "Reporting (Project Publish Summary)"
    In my code (CSOM)  i can only use : " QueueJob Job = projChechedOut.Publish(true);"
    which is creating all these jobs:
    Project Update from PSI
    Project Publish Notifications
    Project Publish
    Project Checkin
    Prepare Project Web App Permission Synchronization For Projects
    Reporting (Project Publish)
    Project Workflow Check-in
    Synchronize Project Web App Permissions to Project Web App
    Synchronize Project Web App Permissions to Project Site
    Reporting (Project Sync)
    Is there way to "simulate" the save from PWA instead of fully publishing the project using CSOM,  because it is a lighter solution since my code is supposed to only set custom field value (if i only update, not publish it is written to the
    Draft) and secondly performance (less jobs) is better ?
    Thx in advance !!

    Hi,
    as an update to my post:
    - In PSI the method is project.queuepublishsummary(guid jobid, guid projuid)
    http://msdn.microsoft.com/en-us/library/office/gg200290.aspx
    the description says: Publishes the stage summaries of the specified project, in a partial publish operation.
    I am wondering if the equivalent method exists in CSOM. There is this method: PublishedProject.UpdateVisibilityCustomFields() but it seems doing exactly the same thing as publishing a DraftProject.
    Any ideas ?
    Thx

  • IWeb site saves AND publishes, without the option to publish or not

    I cannot make any changes, and save them, unless I want the page published on this site:
    http://web.mac.com/joneve/ThePeregrine_Muse/Whoshere.html
    On another site I can save changes I make and then I'm prompted to choose publish or don't publish the page.
    With the first site, where saving constitutes publishing, I can't work ahead. I can't make any changes until I'm ready to publish them. So I can't do part of a page, or update a page, and save my work to be published later.
    This happens with every page on this site - it doesn't matter whether there's only text, or text and graphic or music files - any change that gets saved gets published immediately.
    What could be the problem and how can I correct it?
    Any suggestions will be very appreciated.
    Thanks.

    What happens when you select "save" from the file menu or do < command S > ?

  • Cloud Closing every time I save and Spontaneously

    Every time I use my trial version of Cloud OR Photoshop, I will be working on a product and the program closes itself out. I am getting so annoyed, I can never save anything before it boots me off the program. HELP!

    See this document: Troubleshoot Welcome Screen in Photoshop
    Scroll all the way down to the bottom. There's a check box "Don't Show Welcome Screen Again"
    You can relaunch the screen at a later date by selecting Help>Welcome Screen...
    ~ Arpit

  • Error code = -50 every time I try and publish or export (except Quicktime)

    When I try and do any kind of publish or export (other than "Export using Quicktime") it will say "preparing" then will immediately go to a dialog that says:
    Unable to prepare the project for publishing. The project could not be prepared for publishing because an error occurred. (Error code = -50)
    I have no idea what next.
    Thanks,
    Nate

    Configuration error 16 | CC, CS

  • Numbers and Pages takes forever to save(not responding)

    I am having problems with Numbers, it keep presenting the spinning ball of Death to me when saving as does pages. This is also the case for my father..
    I am running a Imac with OSX 10.7.2. the Imac is just over a year old, 27in 2.8ghz I5 with 12 gig ram... there should be no reason is take its time saving.. very frustrating..
    Any help appreciated

    I installed the creative suite about a year ago, and this just started happening last weekend. I didn't think it would be a problem and that it would last for a day since I was working on InDesign all day and Illustrator and it usually goes away after I finish using the programs. But this has been occurring for about a week now and has not gone away. and yes the other programs are running slow. I was trying to resize some images for a client and Photoshop was acting extremely slow  when I was trying to resize the image and also place an image into a 8x10 document in Photoshop. I'm not sure how to find my system specifications.
    All design programs running extremely slow and takes forever to save and sometimes shuts down randomly? 

  • Are you allowed to take screenshots and publish them

    Hi guys
    I don't really know where to post this question so I hope the right person sees this.
    My question is: Am I allowed to take screenshots of Oracle and publish it in how-to manuals. I've learned a lot from the forums and document everything for myself so I can refer back to it, but I don't know if I'm allowed to publish those documents on a forum.
    This relates to R12 apps installation which is available on 30 day trial.
    (I probably have more winXP screenshots currently than Oracle ones :-/ )

    Absolutely.

Maybe you are looking for