Why would the following code take just 5 minutes on my local machine, but over an hour on mlab:
db.words.find({pinyins:{$exists:true}}).forEach(function(word){
word.characters.forEach(function(character){
db.words.update({simplified:character},
{
$addToSet : {
words: word.simplified
}
})
})
})
p.s. I’m running this both times in MongoChef’s “IntelliShell”. Also, I have the lowest paid plan replica set on mlab.