Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7FCE96A35 for ; Thu, 30 Jun 2011 07:36:17 +0000 (UTC) Received: (qmail 85527 invoked by uid 500); 30 Jun 2011 07:36:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 85102 invoked by uid 500); 30 Jun 2011 07:36:04 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 85083 invoked by uid 99); 30 Jun 2011 07:35:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 07:35:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 07:35:53 +0000 Received: by bwj24 with SMTP id 24so2593033bwj.11 for ; Thu, 30 Jun 2011 00:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Z1ODvKyDX/ZwAcgfHGAqNQJa6mHoigs+hx16sBdlYr0=; b=Ez30x54mdU3XBD/BxZbGzpTVdyV+UW7Gjm2u5g39O/wfzquXiIDcHwvD9M9ozVpRjm zDDilfCh1kIDvsPmaCzLguf0kgTDVXbTXuGFyg0GbyWlrxKrrHChN05iywkyh2brRzWw jOhH19ebw5DsSwpERwce6aHGgFZNrufoR+EPI= MIME-Version: 1.0 Received: by 10.204.19.19 with SMTP id y19mr1543293bka.164.1309419331933; Thu, 30 Jun 2011 00:35:31 -0700 (PDT) Received: by 10.204.114.82 with HTTP; Thu, 30 Jun 2011 00:35:31 -0700 (PDT) In-Reply-To: References: <7800EECA-326D-46C2-B283-E37636EBD2F4@mooseyard.com> Date: Thu, 30 Jun 2011 09:35:31 +0200 Message-ID: Subject: Re: Are server-generated doc IDs better? From: Benoit Chesneau To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Jun 30, 2011 at 3:08 AM, Dale Harvey wrote: > CouchDB generates uuid's that attempts to minimise the amount of rebalanc= ing > that needs to happen on insert, however thats only an optimization I woul= d > 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=EEt