couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1141) Docs deleted via PUT or POST do not have contents removed.
Date Wed, 27 Apr 2011 03:32:03 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025586#comment-13025586
] 

Chris Anderson commented on COUCHDB-1141:
-----------------------------------------

This is proper behavior. (Or -- what Damien said...)

The intent is to allow users the option to save audit data like deleted_at and deleted_by
when they set _deleted=true. 

To read these documents you have to fetch them with their rev num. 

Now, I haven't figured out how to find their rev num except via the changes feed, and THAT
might be an improvement we should make.

> Docs deleted via PUT or POST do not have contents removed.
> ----------------------------------------------------------
>
>                 Key: COUCHDB-1141
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1141
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>         Environment: All
>            Reporter: Wendall Cada
>            Assignee: Damien Katz
>             Fix For: 1.2
>
>
> If a doc is deleted via -X DELETE, the resulting doc contains only id/rev_deleted:true.
However, if a doc is deleted via PUT or POST, through adding _deleted:true, the entire contents
of the doc remains stored. Even after compaction, the original document contents remain.
> This issue is causing databases with large docs to become bloated over time, as the original
doc contents remain in the database even after being deleted.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message