Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 86546 invoked from network); 9 Apr 2009 21:57:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Apr 2009 21:57:36 -0000 Received: (qmail 93014 invoked by uid 500); 9 Apr 2009 21:57:35 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 92903 invoked by uid 500); 9 Apr 2009 21:57:35 -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 92857 invoked by uid 99); 9 Apr 2009 21:57:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 21:57:34 +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; Thu, 09 Apr 2009 21:57:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0F69F234C498 for ; Thu, 9 Apr 2009 14:57:13 -0700 (PDT) Message-ID: <323646313.1239314233061.JavaMail.jira@brutus> Date: Thu, 9 Apr 2009 14:57:13 -0700 (PDT) From: "Damien Katz (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Closed: (COUCHDB-220) Extreme sparseness in couch files In-Reply-To: <1327112634.1232720459507.JavaMail.jira@brutus> 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-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Damien Katz closed COUCHDB-220. ------------------------------- Resolution: Fixed Fix Version/s: 0.10 > Extreme sparseness in couch files > --------------------------------- > > Key: COUCHDB-220 > URL: https://issues.apache.org/jira/browse/COUCHDB-220 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Affects Versions: 0.9 > Environment: ubuntu 8.10 64-bit, ext3 > Reporter: Robert Newson > Fix For: 0.10 > > Attachments: 220.patch, 220.patch, attachment_sparseness.js, stream.diff > > > When adding ten thousand documents, each with a small attachment, the discrepancy between reported file size and actual file size becomes huge; > ls -lh shard0.couch > 698M 2009-01-23 13:42 shard0.couch > du -sh shard0.couch > 57M shard0.couch > On filesystems that do not support write holes, this will cause an order of magnitude more I/O. > I think it was introduced by the streaming attachment patch as each attachment is followed by huge swathes of zeroes when viewed with 'hd -v'. > Compacting this database reduced it to 7.8mb, indicating other sparseness besides attachments. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.