You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2011/09/23 22:07:28 UTC

[jira] [Resolved] (HBASE-4434) seek optimization: don't do eager HFile Scanner next() unless the next KV is needed

     [ https://issues.apache.org/jira/browse/HBASE-4434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-4434.
--------------------------

       Resolution: Fixed
    Fix Version/s: 0.92.0
     Hadoop Flags: [Reviewed]

Committed to 0.92 branch and to TRUNK.  Thanks for the sweet patch Kannan.

> seek optimization: don't do eager HFile Scanner next() unless the next KV is needed
> -----------------------------------------------------------------------------------
>
>                 Key: HBASE-4434
>                 URL: https://issues.apache.org/jira/browse/HBASE-4434
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Kannan Muthukkaruppan
>            Assignee: Kannan Muthukkaruppan
>             Fix For: 0.92.0
>
>         Attachments: HBASE-4434.txt
>
>
> When a seek/reseek is done on StoreFileScanner, in addition to setting the current KV, it also does a HFileScanner level next() ahead of time even if the next KV is never actually required. This inefficiency can potentially result in additional disk seeks and sub-optimal use of the block cache (primarily for cases where the KVs are large and each occupies an HFile block of its own).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira