Joerg Hoh created SLING-12244:
---------------------------------

             Summary: cache results of ResourceResolver.getResourceParentType
                 Key: SLING-12244
                 URL: https://issues.apache.org/jira/browse/SLING-12244
             Project: Sling
          Issue Type: Task
          Components: ResourceResolver
            Reporter: Joerg Hoh


In the context of Sling Models I found that a lot of calls to 
ResourceResolver.getParentResourceType(Resource) are done, which result in 
repository access. But this can happen also outside of it.

In a simple example (AEM wknd page) I found in total 320 calls to in total 36 
resources, which can around 280 requests to the repository, which a reduction 
in the range of 2-3% when it comes to repository access when rendering the 
complete page.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to