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 2014/06/23 19:57:28 UTC

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

Thomas Mueller created OAK-1910:
-----------------------------------

             Summary: 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
            Reporter: Thomas Mueller
            Assignee: Thomas Mueller
            Priority: Minor


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.2#6252)