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 76C1F99C0 for ; Thu, 16 May 2013 11:03:19 +0000 (UTC) Received: (qmail 38961 invoked by uid 500); 16 May 2013 11:03:19 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 38909 invoked by uid 500); 16 May 2013 11:03:18 -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 38883 invoked by uid 99); 16 May 2013 11:03:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 May 2013 11:03:18 +0000 Date: Thu, 16 May 2013 11:03:18 +0000 (UTC) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (COUCHDB-1791) Initial index of views is highly fragmented 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-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13659435#comment-13659435 ] Robert Newson commented on COUCHDB-1791: ---------------------------------------- actually ===, but good spot. > Initial index of views is highly fragmented > ------------------------------------------- > > Key: COUCHDB-1791 > URL: https://issues.apache.org/jira/browse/COUCHDB-1791 > Project: CouchDB > Issue Type: Improvement > Components: JavaScript View Server > Reporter: James Howe > > function(doc) { > if (doc.a = 'b') { emit(doc._id, null); } > } > This view, running on CouchDB 1.2.1, takes 16 minutes to index from scratch on an inactive database, creating a 2.5GB file. > After compaction, the file is then only 157MB. > Can we do something about this waste of disk I/O, such that the initial index is smaller to start with? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira