[ 
https://issues.apache.org/jira/browse/LUCENE-7680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15856504#comment-15856504
 ] 

David Smiley commented on LUCENE-7680:
--------------------------------------

Thanks; for a moment there I confused this with the _old_ TermsFilter now 
called {{TermInSetQuery}}.  And I am aware of that using a high integer 
frequency to avoid caching will nonetheless pollute the cache, which is bad.  I 
guess it'd be easy to write an implementation that delegates to a 
{{UsageTrackingQueryCachingPolicy}}.  What do you think about making 
{{UsageTrackingQueryCachingPolicy}} non-final so that it could be easily 
overridden and minFrequencyToCache might be customized by users?

> Never cache term filters
> ------------------------
>
>                 Key: LUCENE-7680
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7680
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7680.patch
>
>
> Currently we just require term filters to be used a lot in order to cache 
> them. Maybe instead we should look into never caching them. This should not 
> hurt performance since term filters are plenty fast, and would make other 
> filters more likely to be cached since we would not "pollute" the history 
> with filters that are not worth caching.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to