Amazon Web Services DynamoDB Inconstant in Updating Items
<p>I'm using <a href="https://github.com/automategreen/dynamoose" rel="nofollow">Dynamoose</a> to handle DynamoDB in my Node.js application. I have the function below that takes in a user id and adds the value to the value 'mynumber' and saves the new record.</p>

<pre><code>function updateData(userid, value) {
    User.get(userid, function(err, user) {
        user.mynumber = user.mynumber + value;
        user.save(function(err) {});
    });
};
</code></pre>

<p>My issue is that just under half the time maybe this completely fails. When logging into the AWS DynamoDB console the record isn't updated after running this. I have tried running <code>console.log</code> before saving the record and it is accurate. But for some reason doesn't seem to be updating to the DB.</p>

<p>Any ideas for why updating this record would be so inconstant and work perfectly about half the time and the other half no changes are made?</p>

<p>Let me know if you need any more information or have any questions. Thanks so much in advance.</p>