gf2121 opened a new pull request #29:
URL: https://github.com/apache/lucene/pull/29


   IndexOrDocValuesQuery can automatically use dvQueries when the cost > 8 *l 
eadcost, And the LRUQueryCache skips cache building when cost > 250(By default) 
* leadcost. There is a gap between 8 and 250, which means if the factor is just 
between 8 and 250 (e.g. cost = 10 * leadcost), the IndexOrDocValueQuery will 
choose the dvQueries but LRUQueryCache still build cache for it.
   
   IndexOrDocValuesQuery aims to speed up queries when the leadcost is small, 
but building cache by dvScorers can make it meaningless because it needs to 
scan all the docvalues. This can be rather slow for big segments, so maybe we 
should skip the cache building for IndexOrDocValuesQuery when it chooses 
dvQueries.
   


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