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

Thomas Mueller commented on OAK-1903:
-------------------------------------

Revision 1604849 (trunk)
Revision 1604870 (1.0 branch)

> PropertyIndex applies 10x penalty to is not null queries even when the node 
> count is known
> ------------------------------------------------------------------------------------------
>
>                 Key: OAK-1903
>                 URL: https://issues.apache.org/jira/browse/OAK-1903
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.0, 1.0.1
>            Reporter: Justin Edelson
>            Assignee: Thomas Mueller
>             Fix For: 1.0.2
>
>         Attachments: OAK-1903.patch
>
>
> ContentMirrorStoreStrategy has a bit of code which multiples the cost of a 
> "is not null" query by 10. This code was added in r1501746, but there's 
> nothing in the related JIRA (OAK-894) which mentions this change.
> It appears to me that this multiplier should only take effect *if* the 
> maximum node count has been reached. Otherwise, this code vastly overstates 
> the cost of a query.
> In a recent test, a property on 45 nodes generated a cost of 452.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to