Re: [infinispan-dev] [infinispan-internal] PutMapCommand is ineffective

2013-06-10 Thread Manik Surtani
Agreed. It does sound pretty heavy. We should investigate a better implementation - the two approaches you suggest both sound good, could you create a JIRA for this? Adding infinispan-dev, that's the correct place to discuss this. Cheers Manik On 7 Jun 2013, at 13:39, Radim Vansa

Re: [infinispan-dev] [infinispan-internal] PutMapCommand is ineffective

2013-06-10 Thread Dan Berindei
Yes, putAll is really heavy in non-tx (concurrent) mode, because the same PutMapCommand is forwarded from each primary owner to all the backup owners of the keys it primary-owns. However, I don't think However, in non-tx mode locks are owned by threads. A separate lock command would acquire a