ramkrish86 commented on a change in pull request #2663:
URL: https://github.com/apache/hbase/pull/2663#discussion_r539070034
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/StoreScanner.java
##########
@@ -786,6 +791,21 @@ private void updateMetricsStore(boolean memstoreRead) {
}
}
+ private void doSeekCol(Cell cell) throws IOException {
+ // we check when ever a seek_next_col happens did the seek really land in
a new block.
+ // If the seek always lands in the same current block while trying to do a
next(),
+ // we tend to go with next() rather than seek() based on the
'seekToSameBlock'
+ // which is updated in the method 'seekOrSkipToNextColumn'. Do this when
rowColBloom
+ // is not used
+ if (this.matcher.isUserScan() && !get && !useRowColBloom && seekToSameBlock
+ && bytesRead > switchToNextOnlyBytes) {
Review comment:
@infraio - Thanks for the review. Can you tell me more when you say 'do
it directly'? Without observing for few blocks how to know whether the
addColumns is actually projecting all/most of the columns or say it is
projecting in such a way that instead of the nextblock we land in next+1
block()? So this is more like an observation we do and then decide if to take
an action based on that observation.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]