You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2025/06/28 12:21:00 UTC
[jira] [Closed] (SLING-12244) cache results of ResourceResolver.getResourceParentType
[ https://issues.apache.org/jira/browse/SLING-12244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed SLING-12244.
------------------------------------
> 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
> Fix For: Resource Resolver 2.0.0
>
>
> 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)