mayya-sharipova commented on a change in pull request #232:
URL: https://github.com/apache/lucene/pull/232#discussion_r686130985



##########
File path: lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.java
##########
@@ -146,7 +146,7 @@ public LRUQueryCache(
    * of the top-level query will be cached in order to not hurt latency too 
much because of caching.
    */
   public LRUQueryCache(int maxSize, long maxRamBytesUsed) {
-    this(maxSize, maxRamBytesUsed, new MinSegmentSizePredicate(10000, .03f), 
250);
+    this(maxSize, maxRamBytesUsed, new MinSegmentSizePredicate(10000, .03f), 
10);

Review comment:
       I've found [this 
comment](https://github.com/apache/lucene-solr/pull/940#discussion_r333896831) 
how `250` value for `skipCacheFactor` was translated into 10 times slower 
performance.  But I guess how a query 's`cost` translates to a real performance 
cost depends on a query,  and having `skipCacheFactor = 10` seems a safer 
option to me. 




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to