You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2013/07/17 17:08:49 UTC

[jira] [Resolved] (OAK-911) Optimize Session.getItem(String)

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

Jukka Zitting resolved OAK-911.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9

Done in revision 1504165.
                
> Optimize Session.getItem(String)
> --------------------------------
>
>                 Key: OAK-911
>                 URL: https://issues.apache.org/jira/browse/OAK-911
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: jcr
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 0.9
>
>
> The {{Session.getItem(String)}} method is currently implemented by a {{getNode()}} call followed by {{getProperty()}} if needed. This causes two path traversals when accessing properties or non-existent content.
> A faster approach would be to first do a {{getNode()}} on the parent path and then check for a matching property or child node.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira