Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 95025 invoked from network); 9 Oct 2010 19:53:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Oct 2010 19:53:10 -0000 Received: (qmail 27062 invoked by uid 500); 9 Oct 2010 19:53:05 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 26991 invoked by uid 500); 9 Oct 2010 19:53:05 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 26958 invoked by uid 99); 9 Oct 2010 19:53:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 19:53:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Oct 2010 19:53:03 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o99JqgR9017836 for ; Sat, 9 Oct 2010 19:52:42 GMT Message-ID: <24129221.60411286653962570.JavaMail.jira@thor> Date: Sat, 9 Oct 2010 15:52:42 -0400 (EDT) From: "Paul Joseph Davis (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-529) Avoiding updating a doc's _rev if nothing changed In-Reply-To: <1265799715.1255621111502.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Joseph Davis updated COUCHDB-529: -------------------------------------- Skill Level: Committers Level (Medium to Hard) > Avoiding updating a doc's _rev if nothing changed > ------------------------------------------------- > > Key: COUCHDB-529 > URL: https://issues.apache.org/jira/browse/COUCHDB-529 > Project: CouchDB > Issue Type: New Feature > Components: Database Core > Reporter: Matt Goodall > > Would it be possible for CouchDB to use its deterministic rev algorithm to avoid writing changes to the database if nothing has actually changed in the doc that is sent for update. > The most obvious use case is the user who clicks an HTML form's submit button, instead of using the back button, when they haven't changed anything. I suspect most applications do not check if the user made any changes and therefore end up sending exactly the same data back as an update ... unnecessarily creating a new document rev, growing the database, invalidating views, triggering _changes updates, etc. > If CouchDB could determine that the new document is the same as the old document then it could avoid writing to disc and return the current _rev in the response. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.