Hi, Guys
I just have a question, I am trying to save the data into table in HBase
I am using

Table table = getConnection().getTable(TableName.valueOf(tableName));
...
...
Table.close

My question is that, is the "getTable" expensive?
Shall I use that get table and close table in each saving?
Or I just get table at the beginning, saving all data and then close the table 
after all saving.
Because from the aspect of code design, I will save data into the different 
table on the flying. So, if it is expensive, I would like to rewrite the design.
Thank you
Jacky

Reply via email to