cosmosdb sql api vs mongodb api which one to use for my scenario.
问题 I have a document called "chat" "Chat": [ { "User": {}, "Message": "i have a question", "Time": "06:55 PM" }, { "User": {}, "Message": "will you be able to ", "Time": "06:25 PM" }, { "User": {}, "Message": "ok i will do that", "Time": "07:01 PM" } every time a new chat message arrives i should be able to simple append to this array. mongodb API aggregation pipeline (preview) allows me to use things like $push $addToSet for that if i use sql api i will have to pull the entire document every