[
https://issues.apache.org/jira/browse/HBASE-8001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596823#comment-13596823
]
Ted Yu commented on HBASE-8001:
-------------------------------
Patch looks good.
{code}
+ if (isLazy && (heap.size() > 0)) {
+ // If there are only one scanner left, we don't do lazy seek.
{code}
nit: parentheses around new check can be omitted.
> Avoid unnecessary lazy seek
> ---------------------------
>
> Key: HBASE-8001
> URL: https://issues.apache.org/jira/browse/HBASE-8001
> Project: HBase
> Issue Type: Improvement
> Components: regionserver
> Affects Versions: 0.94.5
> Reporter: Raymond Liu
> Assignee: Raymond Liu
> Fix For: 0.98.0
>
> Attachments: HBASE-8001_onescanner.patch
>
>
> Lazy seek helps to reduce the real seek needed for multi hfile, when the kv
> from newer hfile is enough to satisfy the query.
> While in many case, it just push the real seek later, and do not reduce the
> number of real seek. e.g. there are only one hfile, or storefilescanner is
> closed and only one left, or the scan need to go through all the versions, or
> there are only one version of row and a sequence scan is performed. In these
> case, lazy seek just bring extra overhead.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira