Great, aslong as the read is atomic (on document level) I am happy)).
Is there an atomic "read and update"??
Example of what I want to do:
Let say you want to decrease a balance (bankaccount maybe) but it should only happen if the balance will not go below zero. I am thinking of solving the problem in 2 ways
Can I create a mapping with a constraint (a type whos value must be >= 0)
A way to do conditional update based on a read in one atomic action.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.