Copied to clipboard

Flag this post as spam?

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


  • James Gaisford 22 posts 165 karma points
    Sep 01, 2014 @ 17:21
    James Gaisford
    0

    IPublishedContent.GetPropertyValue hits the database?

    Hi all,

    I have a site which uses what I believe to be fairly standard Umbraco practice of having a "GlobalSettings" node, containing content which relates to the whole site, for example cookie notification body text.

    I'm having an issue with site search performance whereby each search result needs to go to the db and retrieve if the result is in a given section or not. When the code below is called I can see several queries hitting the DB (using SQL profiller). 

    public SettingsModel(IPublishedContent content)
    {
    ...
    MembersSectionHome = content.GetPropertyValue<IPublishedContent>("membersSectionHome");
    ...
    }

    I was under the impression from here that IPublishedContent did not hit the db, but went to the cache instead. All the db hits are dramatically effecting the search performance, so am hoping I'm missing something obvious!

Please Sign in or register to post replies

Write your reply to:

Draft