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 "Amit Jain (JIRA)" <ji...@apache.org> on 2014/09/30 09:28:52 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 ]
Amit Jain updated OAK-1910:
---------------------------
Fix Version/s: (was: 1.1)
1.1.1
> 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.1.1
>
>
> 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)