jpountz commented on issue #13179:
URL: https://github.com/apache/lucene/issues/13179#issuecomment-2128783334

   Thanks for looking at this!
   
   > This can be changed to first collect all the matching documents and then 
perform prefetch of the blocks for matched documents followed by actual 
collection
   
   This should work, though I'm wary of making it the new way that collectors 
need to interact with doc values if they want to be able to take advantage of 
prefetching. E.g. we also have collectors for top hits sorted by field, where 
collecting all hits ahead of time would kill the benefits of dynamic pruning. I 
wonder if there are approaches that don't require collecting all matches 
up-front? Access to doc values is forward-only, so prefetching the first page 
only and then relying on some form of read ahead would hopefully do what we 
need?


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