Thomas Mueller created OAK-12221:
------------------------------------

             Summary: Cost estimation should be lower if more conditions are 
indexed
                 Key: OAK-12221
                 URL: https://issues.apache.org/jira/browse/OAK-12221
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: query
            Reporter: Thomas Mueller


Currently, the cost estimation of the Lucene and Elasticsearch indexes only 
tracks the minimum across all properties. The number of indexed properties is 
not taken into account.

What should happen is: the more indexed conditions are added to a query, the 
lower the expected cost should be. Eg. a query with "color = 'red' and id = 1" 
should have a lower expected cost than a query with just "id = 1" or just 
"color = 'red'".




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to