[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:
Related
related to SERVER-412 if $inc or $set on indexes field, com... Closed
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 - SERVER-108
http://github.com/mongodb/mongo/commit/d54681458cad23fd6f4d1a2f5cfe8d8e15a9466e

Comment by auto [ 21/Oct/09 ]

Author:

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

Message: a little code cleaning before work on SERVER-108
http://github.com/mongodb/mongo/commit/d188a16d18ef16f0bf4d48b40bdfd44bc6ae8fcd

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 )

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