dadaxixiyou

Results 4 issues of dadaxixiyou

How to ensure atomicity of multi-table updates? i hope you can tell me. thank you very much

mongoapi:runCmd([ {"aggregate", ?ORDER_TABLE}, {"cursor", #{ } }, {"pipeline", {array,[ [ {"$match", #{status=>0}} ], [ {"$group",[ {"_id","null"}, {"total", [{"$sum", "$amount"}]} ]} ] ]} } ], ?MONGO_MASTER), the query result is: [{,...

How to ensure atomicity of multi-table updates? i hope you can tell me.thank you very much