Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8CE971056C for ; Fri, 13 Sep 2013 16:06:15 +0000 (UTC) Received: (qmail 73944 invoked by uid 500); 13 Sep 2013 13:14:09 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 73557 invoked by uid 500); 13 Sep 2013 13:14:01 -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 73439 invoked by uid 99); 13 Sep 2013 13:13:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Sep 2013 13:13:51 +0000 Date: Fri, 13 Sep 2013 13:13:51 +0000 (UTC) From: "Marek Kowalski (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (COUCHDB-1887) Include rows with deleted=true in the changes feed with filter=_view MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Marek Kowalski created COUCHDB-1887: --------------------------------------- Summary: Include rows with deleted=true in the changes feed with filter=_view Key: COUCHDB-1887 URL: https://issues.apache.org/jira/browse/COUCHDB-1887 Project: CouchDB Issue Type: Improvement Components: Database Core Reporter: Marek Kowalski I think it would be useful to add the notifications about the document deletions to the changes feed with filter=_view. Currently it calls the map() function for each the new revisions and emits the change notification only if the map() function emits non-zero rows. In case of the deleted documents, there is no data inside the document, so typically there is no row emitted by map(). This way the change which potentially changes the view index goes unnoticed. My suggestion is to change handling of the deleted documents, so that the previous revision is evaluated instead of the current one. If the previous revision emitted a row and the current revision is a deletion the change notification with deleted=true should be emitted. Since it seems easy to develop I'd like to volunteer to do it, of course if its not voted out. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira