Azure / azure-cosmosdb-js-server

The JavaScript SDK for server-side programming in Azure Cosmos DB
MIT License
179 stars 152 forks source link

is uniqueConstraint.js isolated across a single collection? #21

Open steve-torchia opened 6 years ago

steve-torchia commented 6 years ago

We need per-collection (not per-partition) uniqueness for our problem domain. I just want to confirm that uniqueConstraint.js is indeed safe for that. For example if two creates come in at the same time with the same unique value, one will win and the other will return to the calling client with a "unique constraint violation" or something similar.

thank you!