[SERVER-268] Enable update to work on multiple documents Created: 28/Aug/09  Updated: 12/Jul/16  Resolved: 22/Oct/09

Status: Closed
Project: Core Server
Component/s: Write Ops
Affects Version/s: None
Fix Version/s: 1.1.3

Type: New Feature Priority: Major - P3
Reporter: sandstrom Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 19
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

As of now update only acts on one object at a time, even though the query may match several. It is of course possible run update n times, where n is the number of objects to update, but that quickly becomes a bit tiresome. Would be nice if update worked more like remove, which acts on several objects.

http://groups.google.com/group/mongodb-user/browse_thread/thread/e7bfc0cdaca06419/8fcc1f5bd04fd614?lnk=gst&q=update#8fcc1f5bd04fd614



 Comments   
Comment by auto [ 21/Oct/09 ]

Author:

{'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: flag to update multiple objects with $ operators SERVER-268
http://github.com/mongodb/mongo/commit/e8466f3dc5d2e8c7db7f1749d25d587d0ec0133e

Comment by auto [ 21/Oct/09 ]

Author:

{'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: refactoring updateObjects return to be cleaner and so can work with multi-object update SERVER-268
http://github.com/mongodb/mongo/commit/4774b56bf203db930dfd6493e9cb721070ae88bb

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