RE: How to implement this check put and then update something logic?

2013-05-13 Thread Liu, Raymond
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

Re: How to implement this check put and then update something logic?

2013-05-11 Thread Asaf Mesika
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 raymond@intel.com wrote: Thanks,

RE: How to implement this check put and then update something logic?

2013-05-10 Thread Liu, Raymond
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 raymond@intel.com wrote: Any suggestion? Hi

RE: How to implement this check put and then update something logic?

2013-05-09 Thread Liu, Raymond
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, or

Re: How to implement this check put and then update something logic?

2013-05-09 Thread Mike Axiak
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 raymond@intel.com wrote: Any suggestion? Hi Say, I have four field for one record :id, status, targetid, and count. Status is on and off, target

RE: How to implement this check put and then update something logic?

2013-05-08 Thread Liu, Raymond
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