[ https://issues.apache.org/jira/browse/SLING-12244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17814314#comment-17814314 ]
Joerg Hoh commented on SLING-12244: ----------------------------------- PR: https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/115 > 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 > Assignee: Joerg Hoh > Priority: Major > > 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)