On Mon, 2017-09-04 at 13:21 +0300, Ere Maijala wrote: > Thanks for the insight, Yonik. I can confirm that #2 is true. I ran > > <optimize maxSegments="1" waitSearcher="true"/> > > and after it completed I was able to retrieve 2000 values in 17ms.
Very interesting. Is this on spinning disks or SSD? Is your index data cached in memory? What I am aiming at is if this is primarily a "many relatively slow random access"-thing or more due to the way DocValues are represented in the segments (the codec). - Toke Eskildsen, Royal Danish Library