couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randall Leeds <>
Subject Re: Are server-generated doc IDs better?
Date Thu, 30 Jun 2011 07:44:50 GMT
On Thu, Jun 30, 2011 at 00:35, Benoit Chesneau <> wrote:
> On Thu, Jun 30, 2011 at 3:08 AM, Dale Harvey <> wrote:
>> CouchDB generates uuid's that attempts to minimise the amount of rebalancing
>> that needs to happen on insert, however thats only an optimization I would
>> worry about if you are under fairly severe load.
>> If your application has natural id's then I would use them, if not then I
>> think its fine to use POST as long as you aware of the idempotent issue
> Other way is to get a bunch of uuids from couch and using them in your
> PUT, so you don't have to generate yourself uuids. (and you have best
> of both world).
> - benoƮt

Benoitc is referring to GET /_uuids (optionally with ?count=X).

View raw message