Concurrent update of array elements which are embedded documents in MongoDB
问题 I have documents like this one at collection x at MongoDB: { "_id" : ... "attrs" : [ { "key": "A1", "type" : "T1", "value" : "13" }, { "key": "A2", "type" : "T2", "value" : "14" } ] } The A1 and A2 elements above are just examples: the attrs field may hold any number of array elements. I'd need to access concurrently to the attrs array from several independent clients accessing to MongoDB. For example, considers two clients, one wanting to change the value of the element identified by key