-
Type: Question
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
I have the problem
e.g. I already have a record in the mongodb as
{ "_id" :
, "id" : 200 , "name" : "ESN000200" , "msg" : "hello world 298374" , "txPacket" : 445, "status": "up", "statusChanged": "yes" }
now I need to update this record.
I have to update the statusChanged field only if the status is changed else not.
what should be the better way to do this..?? I don't have previous information anywhere apart from this collection. What I can think of is get the value match and then put again but this will reduce the speed of updation. I need some oracle trigger like functionality
- is related to
-
SERVER-124 triggers
- Backlog
-
SERVER-6566 Support conditional updates: $updates
- Closed