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/03/19 10:13:38 UTC

[jira] [Updated] (OAK-1910) The query engine cost calculation is incorrect

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

Thomas Mueller updated OAK-1910:
--------------------------------
    Fix Version/s:     (was: 1.2)
                   1.4

> The query engine cost calculation is incorrect
> ----------------------------------------------
>
>                 Key: OAK-1910
>                 URL: https://issues.apache.org/jira/browse/OAK-1910
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Minor
>             Fix For: 1.4
>
>
> The cost calculation formula for the AdvancedQueryIndex does't take the cost to load a node (from the repository) into account. It currently uses:
> {noformat}
> double c = p.getCostPerExecution() + entryCount * p.getCostPerEntry();
> {noformat}
> However cost per entry is the cost of the index, not the cost of the repository. It should probably be
> {noformat}
> double c = p.getCostPerExecution() + entryCount * (1 + p.getCostPerEntry());
> {noformat}



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