Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 24973 invoked from network); 21 Feb 2008 11:51:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2008 11:51:23 -0000 Received: (qmail 7444 invoked by uid 500); 21 Feb 2008 11:51:17 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 7411 invoked by uid 500); 21 Feb 2008 11:51:17 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 7394 invoked by uid 99); 21 Feb 2008 11:51:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 03:51:17 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.19.6] (HELO sineb-mail-1.sun.com) (192.18.19.6) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 11:50:42 +0000 Received: from fe-apac-01.sun.com (fe-apac-01.sun.com [192.18.19.172] (may be forged)) by sineb-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m1LBoqlR017118 for ; Thu, 21 Feb 2008 11:50:52 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JWL005017KBC600@mail-apac.sun.com> (original mail from V.Narayanan@Sun.COM) for derby-user@db.apache.org; Thu, 21 Feb 2008 19:50:47 +0800 (SGT) Received: from [129.158.228.15] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JWL008G37KIFBA1@mail-apac.sun.com> for derby-user@db.apache.org; Thu, 21 Feb 2008 19:50:47 +0800 (SGT) Date: Thu, 21 Feb 2008 17:20:40 +0530 From: Narayanan Subject: Re: Enormous file size for an empty table In-reply-to: <200802211143.m1LBhVvk017042@pyramid-03.kattare.com> Sender: V.Narayanan@Sun.COM To: Derby Discussion Message-id: <47BD6590.6090209@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <200802211143.m1LBhVvk017042@pyramid-03.kattare.com> User-Agent: Thunderbird 2.0.0.6 (X11/20071022) X-Virus-Checked: Checked by ClamAV on apache.org Sai Pullabhotla wrote: > > Did you have a bunch of data in that table/other tables which has now > been deleted? > > > > If so, what you are seeing is normal. Derby does not automatically > reclaim the disk space when data is deleted off the tables. However, > that disk space is reused when you insert any new data. To reclaim the > disk space, I believe there is a stored procedure that you can call > which can be found in the documentation. > http://db.apache.org/derby/docs/dev/ref/rrefaltertablecompress.html http://db.apache.org/derby/docs/dev/ref/rrefproceduresinplacecompress.html > > > > Sai Pullabhotla > > President > > jMethods, Inc. > > Phone: +1 (402) 408-5753 > > Fax: +1 (402) 408-6861 > > www.jMethods.com > > ------------------------------------------------------------------------ > > *From:* Diogo Bastos [mailto:bastos.diogo@gmail.com] > *Sent:* Thursday, February 21, 2008 4:28 AM > *To:* derby-user@db.apache.org > *Subject:* Enormous file size for an empty table > > > > Good morning, > > I've been starting to use Derby only a few weeks ago so I'm still very > "green" on a lot of things concerning it. > > One of the problems I've been having so far is that I have a table > that is taking me something like 1.2Gb of hard drive space - but > here's the catch: that table is empty! > > Is this normal? Have I probably done something wrong? > > I would appreciate if someone could help me out on this. > > Thanks in advance, > Diogo >