Copied to clipboard

Flag this post as spam?

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


  • Sergey 3 posts 23 karma points
    Aug 23, 2012 @ 19:54
    Sergey
    0

    Loading macro script from 1-5 seconds(RazorDynamicNode got datatype)

    Hi,

    Umbraco 4.7.2

    Example script:

    @using umbraco.MacroEngines
    @inherits umbraco.MacroEngines.DynamicNodeContext
    @{
        var pageTitle = Model.pageTitle;
        var metaDescription=Model.metaDescription;
        var metaKeywords=Model.metaKeywords;
        var metaTitle=Model.metaTitle;
        if (Model.Parent.Name == " ")
    {
      <title>@pageTitle | @Parameter.fixedTitle</title>
    }
    
    if (Model.Name == "")
    {
        <title>@Parameter.fixedTitle</title>
    }
    else
    {
    <title>@Library.Coalesce(metaTitle, pageTitle, Model.Name) | @Parameter.fixedTitle</title>
    }
    }
    <meta name="description" content="@metaDescription" />
    <meta name="keywords" content="@metaKeywords" />
    <meta name="title" content="@metaTitle"/>

     

    This script can be loaded more than 2 seconds!
    I use umbdebugshowtrace =true.
    Delay is caused RazorDynamicNode got datatype:

    RazorDynamicNode got datatype ec15c1e5-9d90-422a-aa52-4f7622c63bea for pageTitle on Home2,363374906809342,250208

    The same behavior is observed in other scripts.The feeling that it sticks).

    Please tell me the solution or variants.
    Why is that?

    Sergey.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Aug 24, 2012 @ 18:02
    Jeroen Breuer
    0

    Have a look at this topic and the solution: http://our.umbraco.org/forum/developers/razor/28479-Razor-menu-performance-(v4).

    Jeroen

  • Sergey 3 posts 23 karma points
    Aug 27, 2012 @ 18:55
    Sergey
    0

    Hi,

    Thank you Jeroen.

    Site worked with SQL 2008 R2.  I created a database migration script in Visual Studio 2010 for SQL 2008. Transfer  database with SQL 2008 R2 server on SQL 2008.
    Clean the App_Data / Temp .

    After these manipulations was increase download speed.

    What if it's just faster SQL Server 2008 at the provider?

    Sergey

Please Sign in or register to post replies

Write your reply to:

Draft