[ 
https://issues.apache.org/jira/browse/SLING-12244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg Hoh resolved SLING-12244.
-------------------------------
    Resolution: Fixed

> 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. Caching these can save around 280 requests to the repository, 
> which a reduction in repository access in the range of 2-3% when rendering 
> the complete page.



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

Reply via email to