[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. |
| Comments |
| Comment by auto [ 21/Oct/09 ] |
|
Author: {'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: flag to update multiple objects with $ operators |
| 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 |