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)