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!
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).
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!
is working on a reply...