You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2019/10/15 14:02:50 UTC
[GitHub] [lucene-solr] wuyunfeng edited a comment on issue #940:
LUCENE-9002: Query caching leads to absurdly slow queries
wuyunfeng edited a comment on issue #940: LUCENE-9002: Query caching leads to absurdly slow queries
URL: https://github.com/apache/lucene-solr/pull/940#issuecomment-542227509
@jgq2008303393 I guess you don's get my point, compound query cache sub-clause just because the compound query call the `IndexSearcher#createWeight`, then the default `createWeight` cache the sub-clause.
```
public Weight createWeight(Query query, ScoreMode scoreMode, float boost) throws IOException {
final QueryCache queryCache = this.queryCache;
Weight weight = query.createWeight(this, scoreMode, boost);
if (scoreMode.needsScores() == false && queryCache != null) {
weight = queryCache.doCache(weight, queryCachingPolicy);
}
return weight;
}
```
If the compound query just `createWeight` and do not cache the sub-clause, and just cache itself, this problem maybe not happend?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org