InheritedValueMap performance | Community
Skip to main content
Level 3
June 20, 2017
Solved

InheritedValueMap performance

  • June 20, 2017
  • 3 replies
  • 1236 views

I have come across the use of inheritedValueMap recently and is fitting well for one of our scenario. Wanted to check impact of its usage.

Scenario is site config properties are stored under /content/general/mysite1 and /content/general/group/mygroupsite1. Since there are 2 different levels I need to know what is the ROOT LEVEL (which is 2 in first case and 3 in second case). Since this is used in navigation component,  for each page hit I will need to check if the site config properties are stored at level 2 or 3.

Rather than branching out whether level 2 has the site config property or not, and if not then look for level 3 for the properties, I am thinking to use InheritedValueMap which gives the property value searching from child page to the parent page until it finds it. However I am not finding much documentation around its performance (I believe it is kind of recursive call to parent until there is a match). Will it be a heavy operation for each page hit or it is light weight call ?

Any insight ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Feike_Visser1

In HTL the object is already there (inheritedPageProperties), so it has less impact on performance.

3 replies

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
June 20, 2017

In HTL the object is already there (inheritedPageProperties), so it has less impact on performance.

RonakBAuthor
Level 3
June 20, 2017

Thanks Feike for quick reply. Actually I came to thought of using the inheritedvaluemap from your blog post only

The reason to double check was as I mentioned in the question, I am going to use it for navigation component which will be used in all the pages of the multi tenant instance (6 websites in all). So on page /content/general/website1/page1/child1/child11/child111, it will have to find the property stored at website1 and has to traverse (internally via API) from child111 to website1 bottom up. Will this be expensive ?

Feike_Visser1
Adobe Employee
Adobe Employee
June 21, 2017