From dev-return-11019-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon Aug 02 17:33:43 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 47957 invoked from network); 2 Aug 2010 17:33:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Aug 2010 17:33:42 -0000 Received: (qmail 5265 invoked by uid 500); 2 Aug 2010 17:33:41 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 5185 invoked by uid 500); 2 Aug 2010 17:33:41 -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 4803 invoked by uid 99); 2 Aug 2010 17:33:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Aug 2010 17:33:40 +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; Mon, 02 Aug 2010 17:33:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o72HXHi2002889 for ; Mon, 2 Aug 2010 17:33:17 GMT Message-ID: <20320742.119591280770397105.JavaMail.jira@thor> Date: Mon, 2 Aug 2010 13:33:17 -0400 (EDT) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-837) Adding stale=partial In-Reply-To: <2452653.8651280181143917.JavaMail.jira@thor> 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-837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894611#action_12894611 ] Filipe Manana commented on COUCHDB-837: --------------------------------------- Following last @dev mail replies, considered having a new parameter which replaces stale: update=before (default value) update=no (equivalent to stale=ok) update=after (new behaviour) However it seems that the stale parameter is a replacement for an already deprecated parameter "update". From couch_httpd_view.erl: parse_view_param("update", _Value) -> throw({query_parse_error, <<"update=false is now stale=ok">>}); So, I'll just add "stale=update_after" for the new behaviour. > Adding stale=partial > -------------------- > > Key: COUCHDB-837 > URL: https://issues.apache.org/jira/browse/COUCHDB-837 > Project: CouchDB > Issue Type: Improvement > Environment: all released and unreleased versions > Reporter: Filipe Manana > Assignee: Filipe Manana > Attachments: stale_partial.patch > > > Inspired by Matthias' latest post, at http://www.paperplanes.de/2010/7/26/10_annoying_things_about_couchdb.html, section "Views are updated on read access", I added a new value to the "stale" option named "partial" (possibly we need to find a better name). > It behaves exactly like "stale=ok" but after replying to the client, it triggers a view update in the background. > Patch attached. > If no one disagrees this isn't a good feature, or suggest a better parameter value name, I'll commit. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.