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

Reply via email to