Hi,
I have a method that all it does is:
Posts.update({}, {
$unset: {
someField: true,
},
}, {
multi: true,
});
This collection has 70,000 documents in it in production and when I run the above code, it sends my memory and CPU to 100% in a few seconds and then crashes the app and restarts it. This is on Galaxy using 1GB container.
Any idea why this happens? The operation doesn’t complete either. I would have thought that all the work for this operation would be done on the mongodb end and not have any impact on my Meteor app. Any idea why it does?