I have been playing around with MongoDB for a while and I have noticed that MongoDB and many NoSQL databases do not support unique key constraints as first class features.
MongoDB's _id field in each document is unique by default. However if I need to make another field unique in a document, the way to do is via uniqueIndexes.
What is the fundamental issue in supporting unique key constraints in NoSQL databases in general?
If there is a fundamental issue in using unique keys in NoSQL DBs, will there be an issue in creating unique indexes to achieve this requirement in MongoDB?