Does CouchDB support unqiue key restriction?

I come from the background of RDBMS, and I have an application that requires good scalability and low latency. I want to give CouchDB a try. However, I need to determine when a particular INSERT operation failed due to a unique key constraint. Does CouchDB support this? I looked at the documents, but I could not find anything suitable.

+3
source share
2 answers

The _id for each document is unique (within the same database), but there are no restrictions for other fields in the document.

In particular, there are no restrictions that apply across two or more documents.

, .

+2

, , _id. _id couchdb . ( , , ).

API, PUT , HTTP 409 - ( _rev) .

couchdb, Apache . .

+1

Source: https://habr.com/ru/post/1711486/


All Articles