Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 39415 invoked from network); 24 Jan 2010 16:24:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jan 2010 16:24:05 -0000 Received: (qmail 17653 invoked by uid 500); 24 Jan 2010 16:24:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 17583 invoked by uid 500); 24 Jan 2010 16:24: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 17573 invoked by uid 99); 24 Jan 2010 16:24:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jan 2010 16:24:03 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mikebeam@me.com designates 17.148.16.104 as permitted sender) Received: from [17.148.16.104] (HELO asmtpout029.mac.com) (17.148.16.104) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jan 2010 16:23:55 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from [10.0.1.6] (c-76-31-117-176.hsd1.tx.comcast.net [76.31.117.176]) by asmtp029.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0KWR00FEJEUWI730@asmtp029.mac.com> for user@couchdb.apache.org; Sun, 24 Jan 2010 08:23:21 -0800 (PST) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1001240075 From: Michael Beam Subject: Revisions for Created Documents Date: Sun, 24 Jan 2010 10:23:21 -0600 Message-id: <97552DEE-5559-4DA4-80EA-E3F9B4861300@me.com> To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1077) Hi There, My application is monitoring the _changes API to update its UI for updated documents. I would also like to take actions in my app for new documents, so I wanted to get the list's opinion on detecting created documents. Is checking the revision string for the prefix "1-" is a reliable and robust method of recognizing a change as a new document? Everything in my experience points to yes, but I may be overlooking some subtleties about how that all works. Thanks! Mike Beam