Re: What the optimization method of when to delete Zk connection?

2011-06-08 Thread Stack
On Wed, Jun 8, 2011 at 1:44 AM, bijieshan wrote: > Thanks Suraj. > Yes, It's a better method. For I haven't test on that. > So use HTablePool, it seems we haven't need to delete Zk connections > manually? Is that correct? > Yes. St.Ack

Re: What the optimization method of when to delete Zk connection?

2011-06-08 Thread bijieshan
and > close the HTable. > 2. Create one HTable at a time, after the scanning ,only close the HTable. So > remain the zk connection. > > (Maybe I can share the HTable instance, but it wasn't what I want to discuss > here) > > Which is the best way? Or what the optimization method of when to delete Zk > connection? > > > Thanks! > > Jieshan Bean > > >

Re: What the optimization method of when to delete Zk connection?

2011-06-07 Thread Suraj Varma
; > 1. Create one HTable at a time, after the scanning, delete the connection and > close the HTable. > 2. Create one HTable at a time, after the scanning ,only close the HTable. So > remain the zk connection. > > (Maybe I can share the HTable instance, but it wasn't what I want

What the optimization method of when to delete Zk connection?

2011-06-07 Thread bijieshan
o discuss here) Which is the best way? Or what the optimization method of when to delete Zk connection? Thanks! Jieshan Bean