Support for partial upgrade of Azure DocumentDb using MongoDB protocol

Does the Azure DocumentDB Protocol-Supported for MongoDB, which is in preview, support partial data refresh?

I saw in the documentation that DocumentDb does not support. But could not find any information about this.

+5
source share
2 answers

Yes, although it is not directly supported by the DocumentDB API, incremental operations are supported when using MongoDB protocol support. Here is the confirmation on the Azure page, in particular: "This includes support for fields, arrays, bitwise and isolation updates, as indicated by MongoDB. Update the operator specification . For Update statements that require multiple document operations, DocumentDB provides full ACID semantics for snapshot isolation. "

+2
source

DocumentDB (Cosmos) supports partial updates through a stored procedure. Not sure why this is not more widely documented.

We use the update statement contained in the Cosmos sample database on github through the DocumentDB API . Sending to document ID and the corresponding command ( $push , $set , etc.) Provides similar functionality for partial Mongo updates and provides significantly better performance and the use of RU ( request units ).

0
source

All Articles