romseygeek commented on issue #15981:
URL: https://github.com/apache/lucene/issues/15981#issuecomment-4350762426
I like the idea of estimating how many blocks we can exclude, but we'd need
to benchmark it carefully to make sure the overhead isn't too much. Maybe we
could only walk the highest level entries? Less accurate, but should be fairly
constant time and it will naturally readjust as segments get merged.
We could add a static method to DocValuesSkipper that looks something like:
```
/**
* Returns a value between 0 and 1 inclusive indicating the percentage of
skipper blocks
* that overlap the given range.
*/
public static float selectivity(LeafReader reader, String field, long min,
long max);
```
--
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]