Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4ADBD9B13 for ; Thu, 22 Dec 2011 21:45:11 +0000 (UTC) Received: (qmail 41320 invoked by uid 500); 22 Dec 2011 21:45:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41267 invoked by uid 500); 22 Dec 2011 21:45:09 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 41259 invoked by uid 99); 22 Dec 2011 21:45:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2011 21:45:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chrisstocktonaz@gmail.com designates 209.85.210.180 as permitted sender) Received: from [209.85.210.180] (HELO mail-iy0-f180.google.com) (209.85.210.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2011 21:45:02 +0000 Received: by iazz13 with SMTP id z13so15430126iaz.11 for ; Thu, 22 Dec 2011 13:44:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=iG6Spihe3Y5zvKDNvWPhnH1hB1NyVJRYbysX0fihBQY=; b=O6AU0nzfXRDNHoXtKFMgPf2pggzLYrvhzWsqLyAnSabYJL4ixhOkV3RlOsVs38jiL2 UaUdP3Xiz3WAn1aSIQw7lcYOz48JfQ0gXUH+cgBUKnowE/T3y0SXQl7fXcQIgteMCqgG W7kAJqqPNdslu++k/enLuO7hy/5uS3iAZUUEI= MIME-Version: 1.0 Received: by 10.50.108.140 with SMTP id hk12mr10757879igb.18.1324590281245; Thu, 22 Dec 2011 13:44:41 -0800 (PST) Received: by 10.42.197.72 with HTTP; Thu, 22 Dec 2011 13:44:41 -0800 (PST) In-Reply-To: References: Date: Thu, 22 Dec 2011 14:44:41 -0700 Message-ID: Subject: Re: Database size seems off even after compaction runs. From: Chris Stockton To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hello, On Thu, Dec 22, 2011 at 2:36 PM, Robert Newson wrote: > Deleted docs are preserved forever (necessary for eventual consistency). > > If you know the doc id of a deleted doc, try GET > host:port/dbname/docname?open_revs=all > > You should be able to find your deleted docs via the _changes feed, e.g.; > > ~ $ curl localhost:5984/foo/_changes > {"results":[ > {"seq":2,"id":"bar","changes":[{"rev":"2-91257658886b5692a98d053bb9990b47"}],"deleted":true} > ], > "last_seq":2} > > B. > Robert, I thought I was becoming a couchdb expert, totally tossed out that theory for me :p Okay, so this catches me a bit off guard, always thought compaction cleaned those up. Is there a good way to bulk remove all deleted docs? Or will I need to make DELETE calls on each individual document? Thanks a ton, I appreciate it! -Chris