incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: Can I guarantee uniqueness in a field without using _id?
Date Mon, 12 Jan 2009 10:18:31 GMT

On 12 Jan 2009, at 00:30, Sunny Hirai wrote:

> I know I can put the 'name' in the '_id' field but I'd like to avoid  
> it
> because I'm abstracting CouchDB and the abstraction does not allow  
> for it.

Why is that?


> Anybody have any solutions other than making 'name' the '_id' field?

You'd need some service that acts as global state outside of CouchDB
that ensures it only allows one client to take a certain name.  CouchDB
won't do that for you.

Cheers
Jan
--

Mime
View raw message