zacharymorn commented on code in PR #790:
URL: https://github.com/apache/lucene/pull/790#discussion_r844733404


##########
lucene/core/src/java/org/apache/lucene/search/UsageTrackingQueryCachingPolicy.java:
##########
@@ -58,12 +58,6 @@ private static boolean shouldNeverCache(Query query) {
       return true;
     }
 
-    if (query instanceof DocValuesFieldExistsQuery) {
-      // We do not bother caching DocValuesFieldExistsQuery queries since they 
are already plenty
-      // fast.
-      return true;
-    }

Review Comment:
   Oh sorry I should have added a nocommit for this. Given `FieldExistsQuery` 
now supports norms and vectors in addition to doc values, would not caching for 
also norms and vectors here hurt performance, if we were to have similar 
instance of check for `FieldExistsQuery`? I'm also wondering if there's a 
luceneutil like benchmark for these as well?



-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to