Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-12244

cache results of ResourceResolver.getResourceParentType

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • ResourceResolver
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              joerghoh Joerg Hoh
              joerghoh Joerg Hoh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: