hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: Slow full-table scans
Date Mon, 13 Aug 2012 07:27:50 GMT
On Mon, Aug 13, 2012 at 6:10 AM, Gurjeet Singh <gurjeet@gmail.com> wrote:
> Thanks Lars!
>
> One final question :  is it advisable to issue multiple threads
> against a single HTable instance, like so:
>
> HTable table = ...
> for (i = 0; i < 10; i++) {
>   new ScanThread(table, startRow, endRow, rowProcessor).start();
> }
>

Make an HTable per thread.  See the class comment:
http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/HTable.html

St.Ack

Mime
View raw message