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 "Justin Edelson (JIRA)" <ji...@apache.org> on 2014/06/19 03:28:26 UTC

[jira] [Updated] (OAK-1903) PropertyIndex applies 10x penalty to is not null queries even when the node count is known

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

Justin Edelson updated OAK-1903:
--------------------------------

    Attachment: OAK-1903.patch

proposed patch

> 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
>            Reporter: Justin Edelson
>         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)