Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 28820 invoked from network); 5 Oct 2010 16:37:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 16:37:58 -0000 Received: (qmail 54067 invoked by uid 500); 5 Oct 2010 16:37:56 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 54015 invoked by uid 500); 5 Oct 2010 16:37:56 -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 54007 invoked by uid 99); 5 Oct 2010 16:37:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 16:37:56 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of volker.mische@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; Tue, 05 Oct 2010 16:37:49 +0000 Received: by bwz3 with SMTP id 3so1114045bwz.11 for ; Tue, 05 Oct 2010 09:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=tTOlZFJvxrPb49MQYpMgLQIraiJfoYrnVH1rO2/kvLs=; b=NPfGBlrzyiR8dZeK3TDcWy2YEkFMixhE73ePq11XZCf4u5xhlMf31ICqkYSgr7Ex/q 1EfdFOl23zAN12V9QUhGLebjASuGoeUQNlmJikU7GFIAtD56S1m8vQK301V3EAb3Suqe 5ayne2AQ3s4BdUG+fM7ddWlUGDKWZD3miwzPc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=g794t1TEsH7RHPB/bQBlOdiCeSP5jLWD6C2IdOy9Iq9yFNrpgpPTRwBel42LsFYN2C 0RUTVJoGGnrHo9mClckMFHCdkaxI+XxZw+w9B0smxQfigSKvxY6FSnXshnmCdq+Txok7 EKawsLuHQapjubSDOjY3eiphvozKSctlptroc= Received: by 10.204.117.13 with SMTP id o13mr8683371bkq.48.1286296643038; Tue, 05 Oct 2010 09:37:23 -0700 (PDT) Received: from [192.168.0.3] (dslb-084-056-004-159.pools.arcor-ip.net [84.56.4.159]) by mx.google.com with ESMTPS id 24sm5064637bkr.7.2010.10.05.09.37.20 (version=SSLv3 cipher=RC4-MD5); Tue, 05 Oct 2010 09:37:21 -0700 (PDT) Message-ID: <4CAB5439.4000700@gmail.com> Date: Tue, 05 Oct 2010 18:37:13 +0200 From: Volker Mische User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100922 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: user@couchdb.apache.org CC: Robert Sosinski Subject: Re: How Does CouchDB Generate _rev Strings References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 05.10.2010 04:19, Robert Sosinski wrote: > Hello, > > I just wanted to ask how CouchDB generates the string used for the > _rev. The first part (being the number) is pretty self explanatory. > However, I have not yet figured out how the second part that looks > like a MD5 digest is created. Would it be possible to > deterministically predict the _rev "digest" before saving the > document? > > Any clarification would help. > > Thanks, > > -Robert Hi Robert, have a look in the CouchDB Definitive Guide: http://guide.couchdb.org/draft/conflicts.html#deterministic Cheers, Volker