couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Klo <jim....@sri.com>
Subject immutable _id's
Date Wed, 21 Nov 2012 01:06:26 GMT
Question:  Is there a way in CouchDB to enforce an immutable _id?  Say I delete a document
- which leaves the deleted tombstone around. Is there a way I can prevent someone from recreating
that doc with the same _id?

Can validate update function handle this? (i.e. if new_doc._id !~ /^_design\// and prev_doc._deleted
!= false) I'm not sure if deleted docs get passed to validate update function.

Thanks,

- Jim

Jim Klo
Senior Software Engineer
Center for Software Engineering
SRI International
t.	@nsomnac


Mime
View raw message