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 34B4623B7 for ; Wed, 27 Apr 2011 03:32:46 +0000 (UTC) Received: (qmail 19374 invoked by uid 500); 27 Apr 2011 03:32:45 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 19182 invoked by uid 500); 27 Apr 2011 03:32:44 -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 19156 invoked by uid 99); 27 Apr 2011 03:32:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 03:32:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Apr 2011 03:32:40 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 29958B5CEF for ; Wed, 27 Apr 2011 03:32:03 +0000 (UTC) Date: Wed, 27 Apr 2011 03:32:03 +0000 (UTC) From: "Chris Anderson (JIRA)" To: dev@couchdb.apache.org Message-ID: <1221779770.4970.1303875123166.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <146882369.3366.1303843263303.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (COUCHDB-1141) Docs deleted via PUT or POST do not have contents removed. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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