hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yuzhih...@gmail.com
Subject Re: when all index block are in block cahe , the scan should use random-read
Date Mon, 03 Sep 2012 09:39:55 GMT
Can you log a Jira ?

If you provide a patch, that would be great. 

Thanks



On Sep 3, 2012, at 2:03 AM, jlei liu <liulei412@gmail.com> wrote:

> I am using the Hbase0.94 version.
> 
> 
> The scan use sequential read in Hbase0.94.
> 
> if all index block of one HFile are  in block cache , when user set start
> key and stop key, we can use  *BlockIndexReader.seekToDataBlock(startKey)
> and BlockIndexReader.seekToDataBlock(**stopKey) to receive offsets of start
> data block and end data block, and then we can use the pread to implement
> scan, I think that can improve scan performance.
> 
> 
> *

Mime
View raw message