keith-turner commented on issue #3162:
URL: https://github.com/apache/accumulo/issues/3162#issuecomment-1382955004

   @FineAndDandy  when an iterator seeks forward in the same block there is an 
optimization for that [here in 
RFile](https://github.com/apache/accumulo/blob/5c870af5015b3dfd8d3db3d5fc56d58d7c2584c0/core/src/main/java/org/apache/accumulo/core/file/rfile/RFile.java#L975).
   So for the following situation 
   
    * KeyA, KeyB,KeyC,KeyD exist in the same RFile block 
    * KeyA<KeyB<KeyC<KeyD 
    * We are currently positioned at KeyB
   
   if we seek to KeyD then it should skip from KeyB until it gets to KeyD w/o 
having to start at the beginning of the RFile block.
   
   There is also another optimization for when an RFile block is in cache and 
is being repeatedly seeked to different locations, the code will start to build 
a little index for the data block.  The more its seeked the more entries are 
added to the index related to the cached block.  The code is [here in 
RFile](https://github.com/apache/accumulo/blob/5c870af5015b3dfd8d3db3d5fc56d58d7c2584c0/core/src/main/java/org/apache/accumulo/core/file/rfile/RFile.java#L1051-L1072)


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

Reply via email to