Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 2059 invoked from network); 3 Feb 2009 01:51:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2009 01:51:25 -0000 Received: (qmail 73199 invoked by uid 500); 3 Feb 2009 01:51:23 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 73165 invoked by uid 500); 3 Feb 2009 01:51:23 -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 73154 invoked by uid 99); 3 Feb 2009 01:51:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2009 17:51:23 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rdm@cfcl.com designates 64.142.15.200 as permitted sender) Received: from [64.142.15.200] (HELO pop.cfcl.com) (64.142.15.200) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 01:51:12 +0000 Received: from [192.168.1.205] (cerberus [192.168.1.205]) by pop.cfcl.com (Postfix) with ESMTP id 639AADA7906 for ; Mon, 2 Feb 2009 17:53:36 -0800 (PST) Mime-Version: 1.0 Message-Id: Date: Mon, 2 Feb 2009 17:50:45 -0800 To: user@couchdb.apache.org From: Rich Morin Subject: CouchRest needlessly updates view? Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked by ClamAV on apache.org The act of looking up a document in CouchRest is updating _rev on the view that it uses. This seems inefficient. * Is there a reason for this behavior? * If not, is there a way to prevent it? I have a test script (http://pastie.org/377884) which looks up a document by its "p_uuidc" field. Using Futon, I can confirm that _rev is changing in the _design document when I run the script. Alternatively, when I use a Rack-based forwarding/tracing script, I see a PUT for the _design document, despite the fact that I'm not asking for any such thing. Wazzup? -r -- http://www.cfcl.com/rdm Rich Morin http://www.cfcl.com/rdm/resume rdm@cfcl.com http://www.cfcl.com/rdm/weblog +1 650-873-7841 Technical editing and writing, programming, and web development