Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 23840 invoked from network); 4 Apr 2009 23:07:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2009 23:07:37 -0000 Received: (qmail 77220 invoked by uid 500); 4 Apr 2009 23:07:37 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 77137 invoked by uid 500); 4 Apr 2009 23:07:37 -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 76833 invoked by uid 99); 4 Apr 2009 23:07:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2009 23:07:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2009 23:07:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3EBAA234C051 for ; Sat, 4 Apr 2009 16:07:13 -0700 (PDT) Message-ID: <1064039096.1238886433255.JavaMail.jira@brutus> Date: Sat, 4 Apr 2009 16:07:13 -0700 (PDT) From: "Chris Anderson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-92) Have compaction work on view indexes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695798#action_12695798 ] Chris Anderson commented on COUCHDB-92: --------------------------------------- I think it should go into trunk, for sure. > Have compaction work on view indexes > ------------------------------------ > > Key: COUCHDB-92 > URL: https://issues.apache.org/jira/browse/COUCHDB-92 > Project: CouchDB > Issue Type: Improvement > Components: JavaScript View Server > Affects Versions: 0.8 > Reporter: Jan Lehnardt > Fix For: 0.10 > > > Right now, view indexes just grow and grow with each new index update. Since they are just indexes, and not the data itself, compaction is simply a matter of deleting the index files. > Also, the current Btree implementation isn't completely self balanacing. It misses a balancing condition, partially for efficiency (it's an expensive balancing operation), and for expediency. It was easier to not implement it and gets the general case perormance boost. > The thing about this is, the btree code can remain as is if the indexing compaction just recopies the map values (and back indexes) and recomputes the reduction values. That's a very simple design, however, if the btree is completely self balancing, then the btree can be copied on a node by node basis, instead of a value by value basis, and the reduction values need not be recomputed all. This will make the compaction significantly faster overall. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.