[
https://issues.apache.org/jira/browse/LUCENE-7677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15869965#comment-15869965
]
ASF subversion and git services commented on LUCENE-7677:
---------------------------------------------------------
Commit 2d3487dba2de46a68df977b5abf2c3f242b90158 in lucene-solr's branch
refs/heads/master from [~jpountz]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2d3487d ]
LUCENE-7677: Cache compound filters earlier than regular filters.
> Cache compound filters earlier than regular queries
> ---------------------------------------------------
>
> Key: LUCENE-7677
> URL: https://issues.apache.org/jira/browse/LUCENE-7677
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Adrien Grand
> Priority: Minor
> Attachments: LUCENE-7677.patch
>
>
> Say you keep reusing a boolean filter that looks like "A OR B" and never use
> the A and B queries out of that boolean query. Currently, after this filter
> has been used 5 times, we would cache both A, B and "A OR B", which means
> that cache entries for A and B would only be built for the purpose of
> building a cache entry for "A OR B", which is wasteful.
> By caching compound queries a bit earlier, we could make it less likely to
> happen since:
> - we only consider queries as consumed if a scorer is pulled
> - once the boolean query is cached, we stop pulling scorers on the A and B
> queries
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]