sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SLING-2045) JcrResourceBundle should cache the key as its value if the query returns no resource
Date Mon, 04 Apr 2011 12:01:06 GMT

    [ https://issues.apache.org/jira/browse/SLING-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015371#comment-13015371
] 

Carsten Ziegeler commented on SLING-2045:
-----------------------------------------

Big +1

> JcrResourceBundle should cache the key as its value if the query returns no resource
> ------------------------------------------------------------------------------------
>
>                 Key: SLING-2045
>                 URL: https://issues.apache.org/jira/browse/SLING-2045
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: I18n 2.0.4
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: I18n 2.0.6
>
>
> The JcrResourceBundle.handleObject(String) method uses a query to find a resource for
the key, if it has not cached it yet. If such a resource is found, it is cached and returned.
If no resource is found the key is returned but not put into the cache.
> On repeated query of the same key the same query is run over and over. This causes a
majore performance hit.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message