Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Leif Harstad 8 posts 28 karma points
    Aug 15, 2011 @ 12:46
    Leif Harstad
    0

    Member.Save() - speed issues

    Hi and help!

    I've been trying to figure this one out but am really struggling.

    Environments
    1 x Umbraco 4.5.2 with SQL Server (development area)
    1 x Umbraco 4.5.2 with SQL Server (live production area)

    Requirement
    Update Member properties and save.

    Issue
    Dev Area: If I use C# to grab the member, update the properties and save... this takes no time at all (max logged 1.5 seconds)

    Live Area: If I use C# to grab the member, update the properties and save... this takes a HUGE amount of time (max logged 23.5 seconds)    !?!?

     

    I thought I'd try a few things to eliminate what could be causing this:

    1. Dev Umbraco to Dev SQL = 2 seconds (good)
    2. Dev Umbraco to Live SQL = 5 seconds (good considering it has to bounce around servers)
    3. Live Umbraco to Live SQL = 23 seconds (bad)
    4. Live Umbraco to Dev SQL = 23 seconds (bad)

    To me - that says it's a server issue and not SQL right?

    So, would anyone have a clue as to what would cause Umbraco to slow down so badly on my Live environment?
    I will add, I have drilled down to the point where it's the actual 'Member.Save()' call that causes the 23 second delay..

     

    Any help would be greatly appreciated.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Aug 15, 2011 @ 13:45
    Tim
    0

    I'd say it looks like an issue with the server. I've had issues before with connecting local dev instances of sites to live servers that have been slow, but that's normally when the DB is in another country. Is the database on the same server as the website, or is it on a separate box?

  • Leif Harstad 8 posts 28 karma points
    Aug 15, 2011 @ 14:58
    Leif Harstad
    0

    Hi Tim, thanks for your reply.

    I have 4 servers setup for this:

    Dev Umbraco is on it's own server.
    Dev SQL is on it's own server.
    Live Umbraco is on it's own server.
    Live SQL is on it's own server.

    But each relative Umbraco and SQL server are 'local' to each other.

  • Leif Harstad 8 posts 28 karma points
    Aug 15, 2011 @ 16:57
    Leif Harstad
    0

    **Update: The same delay in seconds happens if I use the backoffice 'Members' section within Umbraco. So it can't be my C# code at least!

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Aug 15, 2011 @ 17:02
    Tim
    0

    It looks like it may be a latency issue between the live server and the database server(s). Do you get a delay on creating content programatically, or calling other methods that make DB calls?

Please Sign in or register to post replies

Write your reply to:

Draft