You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Christoph Kiehl (JIRA)" <ji...@apache.org> on 2007/06/28 18:16:26 UTC

[jira] Updated: (JCR-992) Improve Performance of DescendantSelfAxisQuery

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

Christoph Kiehl updated JCR-992:
--------------------------------

    Attachment: DescendantSelfAxisQuery.patch

This patch adds logic to add all docs on the way down the axis to contextHits if the given doc is a child of the context.

> Improve Performance of DescendantSelfAxisQuery
> ----------------------------------------------
>
>                 Key: JCR-992
>                 URL: https://issues.apache.org/jira/browse/JCR-992
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: query
>    Affects Versions: 1.3
>            Reporter: Christoph Kiehl
>            Priority: Minor
>         Attachments: DescendantSelfAxisQuery.patch
>
>
> In DescendantSelfAxisQuery.DescendantSelfAxisScorer.isValid(int) contextHits is populated with docs that are found on the way down the axis. The current algorithm unfortunately doesn't add any new docs at all because it only adds docs already present in contextHits. This leads to more calls to HierarchyResolver.getParent(int) than necessary.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.