-
Type: Question
-
Resolution: Done
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
i would like to know if performing an $addToSet on an indexed field would cause an index on this field to be rebuilt even if there is no actual change to the field?
for example, if one performed update({ $addToSet:
{ 'list': 'b' } }) on such a document:
{
_id: 1
'list': ['a', 'b', 'c']
}