Well, this did come from a graph domain.
However, I think this could be a common problem when you need to update
something according to the original value where a simple checkAndPut on single
value won't work.
Another example, if you want to implement something like UPDATE, you want to
know wh
Maybe this problem is more in the graph domain? I know that there are projects
aimed at representing graphs at large scale better. I'm saying this since you
have one ID referencing another ID (using target ID).
On May 10, 2013, at 11:47 AM, "Liu, Raymond" wrote:
> Thanks, seems there are no
Thanks, seems there are no other better solution?
Really need a "GetAndPut" atomic op here ...
>
> You can do this by looping over a checkAndPut operation until it succeeds.
>
> -Mike
>
> On Thu, May 9, 2013 at 8:52 PM, Liu, Raymond
> wrote:
> > Any suggestion?
> >
> >>
> >> Hi
> >>
> >>
You can do this by looping over a checkAndPut operation until it succeeds.
-Mike
On Thu, May 9, 2013 at 8:52 PM, Liu, Raymond wrote:
> Any suggestion?
>
>>
>> Hi
>>
>> Say, I have four field for one record :id, status, targetid, and count.
>> Status is on and off, target could refere
Any suggestion?
>
> Hi
>
> Say, I have four field for one record :id, status, targetid, and count.
> Status is on and off, target could reference other id, and count will
> record
> the number of "on" status for all targetid from same id.
>
> The record could be add / delete,
> Btw. Is that possible or practice to implement something like PutAndGet
> which put in new row and return the old row back to client been implemented?
> That would help a lot for my case.
Oh, I realized that it is better to be named as GetAndMutate, say Mutate
anyway, but return the origi
Hi
Say, I have four field for one record :id, status, targetid, and count.
Status is on and off, target could reference other id, and count will
record the number of "on" status for all targetid from same id.
The record could be add / delete, or updated to change the stat