hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Hofhansl (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-11811) Use binary search for seeking into a block
Date Sun, 24 Aug 2014 16:08:38 GMT

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

Lars Hofhansl updated HBASE-11811:
----------------------------------

    Attachment: 11811-wip.txt

Fixes TestHFileBlock. Possible improvements:
* build index as we go to avoid building the complete index when only a single Cell is read
from a block
* persist the index. At write time we can pretty much get the offsets without extra cost
* make this configurable...? We're adding 4 bytes per Cell of heap usage.


> Use binary search for seeking into a block
> ------------------------------------------
>
>                 Key: HBASE-11811
>                 URL: https://issues.apache.org/jira/browse/HBASE-11811
>             Project: HBase
>          Issue Type: Brainstorming
>            Reporter: Lars Hofhansl
>         Attachments: 11811-wip.txt, block_index-v2.txt
>
>
> Currently upon every seek (including Gets) we need to linearly look through the block
from the beginning until we find the Cell we are looking for.
> It should be possible to build a simple cache of offsets of Cells for each block as it
is loaded and then use binary search to find the Cell in question.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message