[SERVER-1073] non-blocking version of db.eval Created: 01/May/10  Updated: 01/May/10  Resolved: 01/May/10

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Aman Gupta Assignee: Eliot Horowitz (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

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); }

);
})



 Comments   
Comment by Eliot Horowitz (Inactive) [ 01/May/10 ]

See SERVER-381

Generated at Thu Feb 08 02:55:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.