Re: Fwd: new atomicCounter support (OAK-2220)

2016-01-14 Thread Davide Giannella
On 13/01/2016 06:21, Torgeir Veimo wrote: > Is there any plans to introduce a cluster safe mechanism of providing > unique counter values? > > Most applications where a sequence is used doesn't require full > sequentiality, but rather a unique number that is easier to memorize / > write than uuids

Re: Fwd: new atomicCounter support (OAK-2220)

2016-01-12 Thread Torgeir Veimo
Is there any plans to introduce a cluster safe mechanism of providing unique counter values? Most applications where a sequence is used doesn't require full sequentiality, but rather a unique number that is easier to memorize / write than uuids for humans. So a type similar to mongodbs ObjectId

Re: Fwd: new atomicCounter support (OAK-2220)

2016-01-04 Thread Davide Giannella
On 21/12/2015 14:17, Torgeir Veimo wrote: > Can someone confirm if the atomic counter support code is suitable for > sequences? > I think on Segment it can safely be used but not on a mongo cluster. What the atomic counter ensure is that the amount of increments/decrements is consistent from a

Fwd: new atomicCounter support (OAK-2220)

2015-12-21 Thread Torgeir Veimo
Can someone confirm if the atomic counter support code is suitable for sequences? https://jackrabbit.apache.org/oak/docs/apidocs/org/apache/jackrabbit/oak/plugins/atomic/AtomicCounterEditor.html If my reading of the spec is correct, separate sessions will see their results from the increment