Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 98515 invoked from network); 14 Jun 2009 21:03:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jun 2009 21:03:18 -0000 Received: (qmail 2067 invoked by uid 500); 14 Jun 2009 21:03:29 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 1989 invoked by uid 500); 14 Jun 2009 21:03:29 -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 1979 invoked by uid 99); 14 Jun 2009 21:03:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jun 2009 21:03:29 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jun 2009 21:03:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5CE2C234C004 for ; Sun, 14 Jun 2009 14:03:07 -0700 (PDT) Message-ID: <1235983195.1245013387365.JavaMail.jira@brutus> Date: Sun, 14 Jun 2009 14:03:07 -0700 (PDT) From: "Chris Anderson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-218) Name view files by function signature for no-downtime deployments In-Reply-To: <1042337539.1232552639584.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-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719331#action_12719331 ] Chris Anderson commented on COUCHDB-218: ---------------------------------------- thinking about this patch, I realize the hard part will be deleting un-needed indexes. basically we'll need to periodically calculate the hashes of all ddocs in a database, and delete any index files who's names don't match any of the hashes. this could be triggered on ddoc update asynchronously. ahh, cache invalidation... > Name view files by function signature for no-downtime deployments > ----------------------------------------------------------------- > > Key: COUCHDB-218 > URL: https://issues.apache.org/jira/browse/COUCHDB-218 > Project: CouchDB > Issue Type: Improvement > Components: JavaScript View Server > Reporter: Robert Newson > Assignee: Chris Anderson > Fix For: 0.10 > > > When a view is altered the .view file is deleted and then recreated. Any query (with update=false) in the interim gets no results even though the results from the old view would have been adequate. > Consider switching the replacement view file in after it's been rebuilt like db compaction does. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.