You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Cosmin Lehene <cl...@gmail.com> on 2019/09/09 18:16:44 UTC
Is there any way to batch conditional mutations
Hi,
I'm trying to figure out if I can do any of the following:
* checkAndMutate with more than one condition (e.g. OR)
* have multiple checkAndMutate operations batched in order to benefit from the rowlock.
Thank you,
Cosmin
Sent via Superhuman ( https://sprh.mn/?vip=clehene@gmail.com )
Re: Is there any way to batch conditional mutations
Posted by Stack <st...@duboce.net>.
Cosmin:
On Mon, Sep 9, 2019 at 11:18 AM Cosmin Lehene <cl...@gmail.com> wrote:
> Hi,
>
> I'm trying to figure out if I can do any of the following:
>
> * checkAndMutate with more than one condition (e.g. OR)
>
>
Doesn't look like it. The CheckAndMutateBuilder implementation only allows
setting one comparator and one value. The CompareOperator is a fixed-set
enum (doesn't have an OR).
> * have multiple checkAndMutate operations batched in order to benefit from
> the rowlock.
>
>
Submitted batches of checkAndMutate seem to be grouped up fine by region
but when they get to the server they are applied one at a time getting
rowlock per 'check' (It looks like a bunch of Mutations can go in under
this single check but not multiple checks after acquiring row locks.
Its slow for you Cosmin?
Thanks,
S
> Thank you,
>
> Cosmin
>
> Sent via Superhuman ( https://sprh.mn/?vip=clehene@gmail.com )