RE: Transactional Reader Writer Locks

2021-12-28 Thread jay.ethan
UPDATE: Looks like we're close to a solution. As Alexei pointed out, reads are concurrent in Optimistic Serializable mode. We switched to optimistic and after we found a bug in our configuration the performance with mixed workloads now is really great! Although some transactions require 100 attemp

Re: RE: Transactional Reader Writer Locks

2021-12-28 Thread don . tequila
Instead of creating a cache with lock objects wouldnБ─≥t it be easier to use a semaphore for each cache where you want to achieve strong reader-Writer consistency?https://ignite.apache.org/docs/latest/data-structures/semaphoreThen every time before reading/writing you ac

RE: RE: Transactional Reader Writer Locks

2021-12-28 Thread jay.ethan
Hi Thomas, thanks for your feedback. We originally discarded that option since it was our understanding that this would not work as desired in a transactional context. Maybe we were wrong. Will look into it again. Thanks! Jay From: don.tequ...@gmx.de Sent: Tuesday, 28