Execute Collection Migrations on multiple Cores

59 views
Skip to first unread message

Christian Schneider

unread,
Jul 2, 2014, 1:48:26 PM7/2/14
to mongee...@googlegroups.com
Hi,
is there any chance to execute the schema changes on multiple cores?
Usually our updates are not that easy that they can be done by the "update" language MongoDB provides.

Therefore we write them mostly like this:

db.col.findAll().forEach(function(doc) {

   // do all the update magic here...
   save(doc);
});

But the problem is that the cursor stuff only works on a single core.



Any idea how to migrate faster? :)


Best Regards,
Christian.
Reply all
Reply to author
Forward
0 new messages