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 "Thomas Mueller (JIRA)" <ji...@apache.org> on 2015/09/23 16:02:04 UTC

[jira] [Commented] (OAK-1501) Property index on "jcr:primaryType" returns the wrong cost

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

Thomas Mueller commented on OAK-1501:
-------------------------------------

http://svn.apache.org/r1704856 (trunk; test case)

> Property index on "jcr:primaryType" returns the wrong cost
> ----------------------------------------------------------
>
>                 Key: OAK-1501
>                 URL: https://issues.apache.org/jira/browse/OAK-1501
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Minor
>              Labels: performance, resilience
>             Fix For: 1.3.7
>
>
> For queries of type, the property index on jcr:primaryType is used, even if only a subset of all node types are indexed:
> {noformat}
> /jcr:root//element(*,rep:User)[xyz/@jcr:primaryType]
> {noformat}
> The problem is that this index returns the wrong cost. It should return "infinity", because the index doesn't have enough data if not all node types and mixins are indexed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)