Archive for May, 2012

Update all records in a MongoDB collection

Wednesday, May 16th, 2012

One way to fast update all records in a MongoDB collection is to send an update with multi flag true. Example:

db.my_collection.update({},{ $set: { "Price" : 100 } }, false, true );