dyngodb
dyngodb copied to clipboard
make use of updateItem in updates instead of put
We should use deepdiff to identify differences between object and _old and then create updateItem (http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateItem.html) calls, to improve update throughput.
this implies making dyn.updateItem transaction-aware... so that $inc operator can be used correctly in a transaction (actually ignores the transaction).
fixed $inc: now is transactional
https://github.com/aaaristo/dyngodb/blob/master/experiments/index.updateItem.js