Conditional atomic update

2016-05-18 Thread chris
(Resending because DMARC-compliant ESPs bounced the previous version) � I'm looking for a way to do an atomic update, but if a certain condition exists on the existing document, abort the update. � Each document has the fields id, count, and value.� The source data ha

Conditional atomic update

2016-05-17 Thread Chris Yee
I'm looking for a way to do an atomic update, but if a certain condition exists on the existing document, abort the update. Each document has the fields id, count, and value. The source data has just id and value. When the source data is indexed, I use atomic updates to: - Increment the count va