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 <kotamrajuyasha...@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

Reply via email to