From user-return-13060-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Tue Oct 05 16:15:55 2010 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 23180 invoked from network); 5 Oct 2010 16:15:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 16:15:54 -0000 Received: (qmail 12515 invoked by uid 500); 5 Oct 2010 16:15:52 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 12039 invoked by uid 500); 5 Oct 2010 16:15:51 -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 Delivered-To: moderator for user@couchdb.apache.org Received: (qmail 17615 invoked by uid 99); 5 Oct 2010 02:20:47 -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 (nike.apache.org: domain of robert.sosinski@gmail.com designates 209.85.216.173 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=UNm0QrXJu/Y/2Y02dwNm+ZwOwAN0lsv2JvqQ5XFyIu0=; b=qsv6HPoGYSHD1cWU+rA6JwCdTbl/E2FvmViEEFbjvLzqPqEnn3haY+ZGZAARq0noNy /4wBFGxUqLAQMYeyEYMAhotD7AZwvHDDV7npgi1cLraSw/mA/ETyISS70urzyRRVT5Ko ItviZmFkEb+s0beUEamebzV+aRo+/gjOs4GH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=RBxA69UdDPN0ZhB6QPWALrFgC+zVDvm0aHVBDE16iv5PKYtsBhERrr4hv+T6AI/eMK aBiabb5hD83OkGxV/IzlTA3D+HwvgUrtKJ9CT6tE+xbf5lgbfn/O+NRox1pvuQBHPjKA UJeCPkxJhk2XRRt3MMgPqDu5kjt2bGsmDZxko= MIME-Version: 1.0 Sender: robert.sosinski@gmail.com From: Robert Sosinski Date: Mon, 4 Oct 2010 22:19:58 -0400 X-Google-Sender-Auth: TgV9eqJRh1z-egQbUZvCAWRet6s Message-ID: Subject: How Does CouchDB Generate _rev Strings To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 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