hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Dagaev" <michael.dag...@gmail.com>
Subject HTables Pool
Date Mon, 15 Dec 2008 10:23:12 GMT
Hi, all

    Currently, we are using a single instance of HTable in a
multithreaded application. That is, several threads use the same
instance of HTable to insert data in the database. Since method
"commit" of HTable is synchronized, we are afraid that the single
instance of HTable can be a bottle neck. So, we are going to create a
pool of HTable instances (all instances are created with the same
table name) and use the instances simultaneously (an instance per
thread).

Does it make sense?

Thank you for your cooperation,
M.

Mime
View raw message