non-blocking version of db.eval

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This would be useful for doing data migrations on the server. Currently if I run a migration on a large collection, everything blocks:

      db.eval(function(){
      b.users.find().forEach( function(obj)

      { obj.name = obj.first_name + " " + obj.last_name; delete obj.first_name; delete obj.last_name; db.things.save(obj); }

      );
      })

              Assignee:
              Eliot Horowitz (Inactive)
              Reporter:
              Aman Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: