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 "Alex Parvulescu (JIRA)" <ji...@apache.org> on 2013/11/08 10:03:18 UTC

[jira] [Updated] (OAK-1155) PropertyIndex cost calculation is faulty

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

Alex Parvulescu updated OAK-1155:
---------------------------------

    Fix Version/s: 0.11

> PropertyIndex cost calculation is faulty
> ----------------------------------------
>
>                 Key: OAK-1155
>                 URL: https://issues.apache.org/jira/browse/OAK-1155
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, query
>            Reporter: Alex Parvulescu
>             Fix For: 0.11
>
>
> The cost calculation can easily go out of bounds when it needs to estimate (whenever there are more than 100 nodes).
> The high value it returns can be higher than the traversal index which has a max of 10M, but can be less smaller.
> For example:
>   100 nodes in the index:
>   with a single level /content cost is 6250000
>   adding a second level /content/data cost jumps to 1.544804416E9
>   101 nodes in the index:
>   with a single level /content cost is 100
>   adding a second level /content/data stays at 100
>   100 nodes, 12 levels deep, cost is 2.147483647E9
>   101 nodes, 12 levels deep, cost is 6.7108864E7



--
This message was sent by Atlassian JIRA
(v6.1#6144)