ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Vinokurov <vinokurov.pa...@gmail.com>
Subject Re: Locking mechanism difference between sequential get() and getAll()
Date Tue, 08 May 2018 11:02:18 GMT
Hi,

Method getAll() obtains locks by order provided by the keys collection.
There are no difference between two methods except that internally getAll()
obtains locks by batches for optimization.

Thanks,
Pavel




2018-05-08 8:54 GMT+03:00 kotamrajuyashasvi <kotamrajuyashasvi@gmail.com>:

> Hi
>
> I'm using a Transactional cache in my project with pessimistic
> repeatable_read mode. In my logic I have an ordered set of keys which need
> to be locked. I can lock in two ways.
>
> 1. Iterate through the ordered set and call get() on each key.
> 2. use getAll() passing the ordered set of keys.
>
> Functionality wise will there be any difference between the above two
> methods ?
> Other than that what are all the differences between the two ?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>



-- 

Regards

Pavel Vinokurov

Mime
View raw message