couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <>
Subject Re: Please allow _prefix for auto-created _id
Date Sat, 07 Mar 2009 18:11:05 GMT
On Sat, Mar 7, 2009 at 3:58 AM, Wout Mertens <> wrote:
> Hi devs,
> Would it be possible to allow a _prefix parameter to be given when creating
> a new document, which would be used for auto-generating an _id?

Currently it's recommended not to POST new documents without ids to
CouchDB. Due to HTTP protocol issues this can result in duplicate
document creation.

Instead, GET /_uuids?count=200 and use the array of uuids for your
next 200 docs. From there it is simple to add the prefix in your


Chris Anderson

View raw message