Is there a way to make CosmosDB Data Explorer respect ETag when updating a document in the browser?

Alfred Kristal 20 Reputation points
2024-12-12T08:28:26.5133333+00:00

Hi,

I would like to be able to manually update certain things in my CosmosDB container without having to worry about an application potentially overwriting the change/having its change overwritten by me. I tried this with two browsers by opening the same document in them both, then writing with first one and then the other. Both went through, but my expectation was that the second write would cause an error since there was an ETag mismatch. Is there any way I can set Data Explorer to behave like this?

Thanks!
Alfred

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,710 questions
{count} votes

Accepted answer
  1. ShaktiSingh-MSFT 16,086 Reputation points
    2024-12-17T05:13:44.2933333+00:00

    Hi @Alfred Kristal,

    We have checked with the internal team and received below reply:

    This feature didn’t work because there is nothing in the data explorer code that is explicitly throwing an error for conflicts, and by default “last write wins” in a race condition.

    Doing an ETag If-Match check is not natively supported in Cosmos DB data explorer, but its an interesting feature suggestion.

    We encourage you to raise a feature request as a GitHub issue for data explorer: https://github.com/Azure/cosmos-explorer/issues

    OR over

    Feedback Channel Azure Cosmos DB: Azure Cosmos DB · Community

    Thanks for posting question over Q&A forum.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.