On 2011-10-20 15:19, Alexander Uvarov wrote:
is there something on the roadmap for couchdb that would solve our unique key
problem?
There is no uniqueness in CouchDB and I think will never be.
PS: I think that will be cool to have a feature to declare such
constraints. And mark documents (if constraint void) just like them
marked when conflict occurs (doc._conflict). Something like
doc._constraints["unique_timestamp"]. Then it will be possible to
create a view and retrieve a list of documents with constraints
violation.
But isn't this possible to do just by writing a view with a suitable
reduce function?
--
Michael Zedeler
70 25 19 99 | LinkedIn <http://dk.linkedin.com/in/mzedeler> | Twitter
<http://twitter.com/#%21/mzedeler> | Github <https://github.com/mzedeler>