Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 67721 invoked from network); 22 Dec 2009 18:38:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Dec 2009 18:38:50 -0000 Received: (qmail 51754 invoked by uid 500); 22 Dec 2009 18:38:50 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 51649 invoked by uid 500); 22 Dec 2009 18:38:50 -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 51639 invoked by uid 99); 22 Dec 2009 18:38:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 18:38:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jabronson@gmail.com designates 209.85.223.190 as permitted sender) Received: from [209.85.223.190] (HELO mail-iw0-f190.google.com) (209.85.223.190) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 18:38:39 +0000 Received: by iwn28 with SMTP id 28so4468412iwn.13 for ; Tue, 22 Dec 2009 10:38:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ZEuDxvrQKR+VlYDg5bNtdULt8kx/qAvzRwaX1CyWamU=; b=QFzaDYzvy0ONrQZhjRlNjOovSmAwrM9C5RNfe3WoQE7r/YmqSYs0iJpA9tk1BfP+1E 6eWVZBebcE/OptBDw2bWszuhGKaKHm2E4BLW1hDKlLvCftqtOvqJkUNFHzuTOE1YOQ9X JwC282khrJzreGZMBI5pVG+xoFqwTGULOxziU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=mVx28Td5tbBPtCKYaaRqFZf0BF4lehg6eRnDkYzSFbQuG8v0UeHUDWGfHjScgYgXBa fgJg/xE/3CwF5U4muuMsrNCv92+3rAJV4pViLdQ4Bm6qeRlu3vT39sDZ5HVYv2WrxVYC 5LncoQOhggRMuAHUMEoW7T5ZgOkbip0CArGuA= MIME-Version: 1.0 Received: by 10.231.123.41 with SMTP id n41mr1380473ibr.46.1261507098951; Tue, 22 Dec 2009 10:38:18 -0800 (PST) Date: Tue, 22 Dec 2009 13:38:18 -0500 Message-ID: <299cc2dd0912221038r35e2bd1ckef5c217b4a84c870@mail.gmail.com> Subject: partial compaction? From: Joshua Bronson To: dev Content-Type: multipart/alternative; boundary=0016e647195a83c070047b55820d X-Virus-Checked: Checked by ClamAV on apache.org --0016e647195a83c070047b55820d Content-Type: text/plain; charset=ISO-8859-1 I was thinking it would be cool to be able to specify some number of most recent revisions to preserve during compaction. In some cases you only care about e.g. the two most recent revisions of a document, and don't care about the hundreds of older revisions that are just wasting space. You could extend this idea by having compaction take an arbitrary predicate function operating on old revisions to determine which are retained, but maybe this needlessly complicates things. Thoughts? --0016e647195a83c070047b55820d--