使用 MongoDB 协议对 Azure DocumentDb 的部分更新支持
Partial Update Support on Azure DocumentDb with MongoDB protocol
预览中的"Azure DocumentDB with protocol support for MongoDB"是否支持部分更新数据?
我在文档中看到不支持的 DocumentDb。但是找不到这方面的任何信息。
是的,即使不支持直接到 DocumentDB API,在使用 MongoDB 协议支持时,也支持增量操作。 Here is confirmation on the Azure page, in particular, "This includes support for field, array, bitwise and isolation updates as specified by MongoDB Update operator specification。对于需要多个文档操作的 Update 运算符,DocumentDB 提供了具有快照隔离的完整 ACID 语义。"
DocumentDB (Cosmos) 确实支持通过存储过程进行部分更新。不确定为什么没有更广泛的记录。
我们通过 DocumentDB API 使用更新运算符 provided in Cosmos DB samples on github。发送 document ID
和相应的命令($push
、$set
等)提供与 Mongo 部分更新类似的功能,并使 RU 的性能和使用更好(请求单位).
预览中的"Azure DocumentDB with protocol support for MongoDB"是否支持部分更新数据?
我在文档中看到不支持的 DocumentDb。但是找不到这方面的任何信息。
是的,即使不支持直接到 DocumentDB API,在使用 MongoDB 协议支持时,也支持增量操作。 Here is confirmation on the Azure page, in particular, "This includes support for field, array, bitwise and isolation updates as specified by MongoDB Update operator specification。对于需要多个文档操作的 Update 运算符,DocumentDB 提供了具有快照隔离的完整 ACID 语义。"
DocumentDB (Cosmos) 确实支持通过存储过程进行部分更新。不确定为什么没有更广泛的记录。
我们通过 DocumentDB API 使用更新运算符 provided in Cosmos DB samples on github。发送 document ID
和相应的命令($push
、$set
等)提供与 Mongo 部分更新类似的功能,并使 RU 的性能和使用更好(请求单位).