On 05/02/2015 16:43, Thomas Mueller wrote: > Hi, > > I would use the "index" approach, at least for now. By the way, I have > used the same idea for the approximate node counter mechanism (OAK-1907). Yes that's the direction we're taking for now (see previous email from myself). And the approximate counter is from where I took the inspiration. > A generalisation of the "atomic counter" problem is the "atomic sum" > problem. For that, you don't just want to support +1 and -1, but +x and > -x, It's already this way. > possibly with a constraint (an allowed range), so it could be used for > reservation systems (in synchronous mode only; not in a cluster). This is a nice new feature that could be added. Do you mind to file an improvement ticket so that we won't forget it. We'll then see when to schedule it for future releases.
> One > possible solution is: > > ... > We already have a solution in place for atomic counter. See https://issues.apache.org/jira/browse/OAK-2220 and the attached (in the issue) doc for the details. Cheers Davide
