Justin Edelson created OAK-1903:
-----------------------------------
Summary: PropertyIndex applies 10x penalty to is not null queries
even when the node count is known
Key: OAK-1903
URL: https://issues.apache.org/jira/browse/OAK-1903
Project: Jackrabbit Oak
Issue Type: Bug
Components: query
Reporter: Justin Edelson
ContentMirrorStoreStrategy has a bit of code which multiples the cost of a "is
not null" query by 10. This code was added in r1501746, but there's nothing in
the related JIRA (OAK-894) which mentions this change.
It appears to me that this multiplier should only take effect *if* the maximum
node count has been reached. Otherwise, this code vastly overstates the cost of
a query.
In a recent test, a property on 45 nodes generated a cost of 452.
--
This message was sent by Atlassian JIRA
(v6.2#6252)