gohbase icon indicating copy to clipboard operation
gohbase copied to clipboard

How can I put a list of rows?

Open forthe2008 opened this issue 6 years ago • 5 comments

only see the put method, can I put the multi-row in one request together?

forthe2008 avatar Apr 08 '18 11:04 forthe2008

Currently, explicit batch operations are not support, however if you spawn multiple goroutines and multiple PUT operations are executed within a small window, these ops will all be batched automatically before sending. It's not ideal, but it works.

That said, I will be making a PR in the (maybe near?) future to add explicit batching support, as we need it at my job. All I can say is... look forward to it :P

jonbonazza avatar Apr 11 '18 18:04 jonbonazza

thanks

forthe2008 avatar Apr 12 '18 02:04 forthe2008

Any advance in this regard? :)

melon3r avatar Sep 18 '18 10:09 melon3r

Unfortunately it's been deprioritized for us as we have decided to move to a different datastore for other reasons. I wouldn't count on this work from us any time soon, if ever at this point.

Sorry. :(

jonbonazza avatar Sep 18 '18 16:09 jonbonazza

No worries :wink:

I've tried the "spawn lots of goroutines" way and it works like a charm. It takes 40min to write to HBase what used to take ~20h. Magic.

Thanks for making this library in the first place. :heart:

melon3r avatar Sep 20 '18 07:09 melon3r