[SERVER-108] make $inc/$set work for indexed fields Created: 16/Jun/09 Updated: 12/Jul/16 Resolved: 09/Nov/09 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Write Ops |
| Affects Version/s: | None |
| Fix Version/s: | 1.1.3 |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Eliot Horowitz (Inactive) | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 10 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Comments |
| Comment by auto [ 21/Oct/09 ] |
|
Author: {'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: $inc/$set work even if indexes - not 100% efficient now - |
| Comment by auto [ 21/Oct/09 ] |
|
Author: {'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}Message: a little code cleaning before work on |
| Comment by sandstrom [ 25/Aug/09 ] |
|
I'd very much like to see support for this. Especially push. It's very convenient to use index unique and push in web environments. There are many cases, especially when using ajax, where you rather silently ignore a duplicate then have an extra check for existing objects. This doesn't work as of now though, thus having this fixed would be sweet. |
| Comment by Wouter [ 11/Jul/09 ] |
|
Please make this also work for the other modifiers $push (and by then possibly $pull/$pushAll/$pullAll). (I posted it in the mongo-user group too, but I realised commenting here might make more sense |