ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Scherbakov <alexey.scherbak...@gmail.com>
Subject Re: Affinity Key Mapping
Date Mon, 30 May 2016 16:10:50 GMT
I have another idea.
Try to define country cache as atomic.
It shouldn't block on read when.
Of course it can't be used with transactional semantics.

2016-05-30 18:50 GMT+03:00 amitpa <amitpa@nrifintech.com>:

> Alexei,
>
> yes I understand with Ignite Optmistic means lock acquisition on write for
> READCOMMITED.
>
> With PESSIMISTIC it would be on read.
>
> However consider a cache like Country (contrived example )...many people
> may
> live in USA. But if someone tries to do a transaction for a entry on write
> all will lock on the same entry.
>
> This is a contrived example, and I can ofcourse find multiple ways to
> circumvent this particular scenario.
>
> But for some cases this can not be done.
>
> And if there is any cache config which says a cache is read only that
> should
> be fast enough.
>
> However I wil try your work around.
>
> Many thanks for your replies, it is really helpful.
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Affinity-Key-Mapping-tp5212p5327.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 

Best regards,
Alexei Scherbakov

Mime
View raw message