Inserting to a number of containers in azure cosmos db as one atomic operation

五迷三道 提交于 2020-03-12 05:35:52

问题


I'm a little new to Azure Cosmos DB.

I wanted to know if it has an option to make a number of operations on multiple containers as one atomic operation. E.g., all succeed or or fail from a .NET backend.


回答1:


Operations are atomic to a single operation in a single container. If you use a Stored Procedure, you may perform an atomic set of multiple operations within a single partition within a single container.

You cannot perform any atomic operations across multiple containers, or across multiple partitions of a single container. This has nothing to do with which language environment (e.g. .NET as you mentioned) you're using. This is just how the Cosmos DB service works.



来源:https://stackoverflow.com/questions/60197475/inserting-to-a-number-of-containers-in-azure-cosmos-db-as-one-atomic-operation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!