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 "Amit Jain (JIRA)" <ji...@apache.org> on 2014/09/30 09:29:02 UTC

[jira] [Updated] (OAK-1744) GQL queries with "jcr:primaryType='x'" don't use the node type index

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

Amit Jain updated OAK-1744:
---------------------------
    Fix Version/s:     (was: 1.1)
                   1.1.1

> GQL queries with "jcr:primaryType='x'" don't use the node type index
> --------------------------------------------------------------------
>
>                 Key: OAK-1744
>                 URL: https://issues.apache.org/jira/browse/OAK-1744
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>            Reporter: Thomas Mueller
>            Priority: Minor
>             Fix For: 1.1.1
>
>
> GQL queries (org.apache.jackrabbit.commons.query.GQL) with type restrictions are converted to the XPath condition "jcr:primaryType = 'x'". This conditions is not currently interpreted as a regular node type restriction in the query engine or the node type index, as one would expect. 
> Such restrictions could still be processed efficiently using the property index on "jcr:primaryType", but if that one is disabled (by setting the cost manually very high, as it is done now), then such queries don't use the expected index.
> I'm not sure yet where this should be best fixed.



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