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 D7A1A96F6 for ; Tue, 10 Apr 2012 16:08:55 +0000 (UTC) Received: (qmail 20250 invoked by uid 500); 10 Apr 2012 16:08:52 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 20191 invoked by uid 500); 10 Apr 2012 16:08:52 -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 20158 invoked by uid 99); 10 Apr 2012 16:08:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 16:08:52 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mkimber@kana.com designates 64.95.72.241 as permitted sender) Received: from [64.95.72.241] (HELO mxout.myoutlookonline.com) (64.95.72.241) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 16:08:46 +0000 Received: from mxout.myoutlookonline.com (localhost [127.0.0.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id 58D278BF9A2 for ; Tue, 10 Apr 2012 12:08:25 -0400 (EDT) X-Virus-Scanned: by SpamTitan at mail.lan Received: from HUB015.mail.lan (unknown [10.110.2.1]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mxout.myoutlookonline.com (Postfix) with ESMTPS id 4A01C8BEB80 for ; Tue, 10 Apr 2012 12:00:49 -0400 (EDT) Received: from BE259.mail.lan ([10.110.32.159]) by HUB015.mail.lan ([10.110.17.15]) with mapi; Tue, 10 Apr 2012 12:00:48 -0400 From: Mike Kimber To: "user@couchdb.apache.org" Date: Tue, 10 Apr 2012 12:00:47 -0400 Subject: RE: Couchdb 1.2 Automatic Compaction - How? Thread-Topic: Couchdb 1.2 Automatic Compaction - How? Thread-Index: Ac0XMdFgSGfgR9R3TUu2R90ti6npTQAAN+6w Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Matt,=20 Thanks for confirming what I suspected might be the answer. I'll give it ag= o once I've got my db loaded with some data. Thanks Mike=20 -----Original Message----- From: Matt Goodall [mailto:matt.goodall@gmail.com]=20 Sent: 10 April 2012 16:52 To: user@couchdb.apache.org Subject: Re: Couchdb 1.2 Automatic Compaction - How? On 10 April 2012 15:55, Mike Kimber wrote: > This feature is disabled by default, but it can be enabled in the configu= ration page in Futon or the .ini files. > > Possibly obvious to many but unfortunately not to me; how do I enable aut= omatic compaction? I see a number of parameters commented out at the bottom= of default.ini, but it's not clear which one to uncomment to enable automa= tic compaction i.e. there is nothing that says turn compaction daemon on th= at I can see? > > Thanks > > Mike Just been looking at this myself... There seem to be 2 sections in CouchDB's .ini file related to automatic compaction: compaction_daemon and compactions. Using the default configuration, the minimum you need to do is uncomment/add a "_default" option in the compactions section. The "_default" option applies to all databases. If you want per-database configuration then add add another option using the database's name instead of "_default". Other than that, it's all described in CouchDB's default.ini, including various examples. I actually reduced the compaction_daemon section's "check_interval" option while I was playing around just so I could see things happening more quickly. However, the defaults look sane so I'll be using those for now. Hope that helps to get you started. - Matt