[SERVER-459] Find and Modify command Created: 04/Dec/09 Updated: 06/Dec/23 Resolved: 30/Dec/09 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Usability |
| Affects Version/s: | None |
| Fix Version/s: | 1.3.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Participants: | |||||
| Description |
|
It would be nice to have an atomic modify-and-return feature that could do either an update or a remove. This could be used to support queue-like features by either marking jobs as 'in-progress' or simply removing them. For maximum flexibility we should be able return either the original or the updated version based on an optional parameter. |
| Comments |
| Comment by Mathias Stearn [ 30/Dec/09 ] |
|
http://www.mongodb.org/display/DOCS/Atomic+Operations#AtomicOperations-FindandModify%28orRemove%29 |
| Comment by Mathias Stearn [ 30/Dec/09 ] |
|
Finished the implementation, but leaving this bug open to remind me to add a wiki page. |
| Comment by auto [ 30/Dec/09 ] |
|
Author: {'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}Message: FindAndModify command |