Details
-
Bug
-
Status: Triage Needed
-
Normal
-
Resolution: Unresolved
-
None
-
All
-
None
Description
In BounceIntersectionIterator, it polls the range iterator which has the smallest current token from priority queue and uses the smallest token to perform skipTo() on other range iterators where their current tokens are equal to or greater than the smallest token... In this case, "skipTo()" works similarly to "next()" and no on-disk leaves will be skipped in TokenTreeIterator#performSkipTo().
I think BounceIntersectionIterator should poll the range iterator with biggest current token and use it to perform skipTo() to improve performance.