Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 73174 invoked from network); 24 Sep 2009 19:52:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Sep 2009 19:52:06 -0000 Received: (qmail 89753 invoked by uid 500); 24 Sep 2009 19:52:06 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 89689 invoked by uid 500); 24 Sep 2009 19:52:06 -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 89681 invoked by uid 99); 24 Sep 2009 19:52:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 19:52:06 +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 (athena.apache.org: local policy) Received: from [68.142.236.188] (HELO web58505.mail.re3.yahoo.com) (68.142.236.188) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 Sep 2009 19:51:56 +0000 Received: (qmail 5072 invoked by uid 60001); 24 Sep 2009 19:51:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1253821895; bh=YLqYcq+tPtBUVlOVqHnFxq5mrnm/kHNFD1kM8/W7Ekw=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=ize92hCNvsGKMCc7XmQbUWPxIA9o/jBk4MPbRHsTHkoccTUEC/OlroXqhkp3gsVhJA3PKWoX7LV5F5dNThLHLFHyFhfg8xuxdu7rD9vLZHbAIJE6TU3QlmT9luZEW0b7MXVsDecOTrgCsm9WF03kKtOcr9CKmU8hkth322huYnE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=gCwymOHI0mxQzGXOAGxgkz6zblMfMCXtmuqLi0Os3tC+dIMYPpzXc+4Iq46/Tj29bsmxsW7EGQwpnXD5E10O0+7PK7o6AVg1D69RM9cAkdm+rlFqXgm+SEUk17Vrl2E23Dk5pVtuJd3nsTemHLrNixdTVXGxSpeHxWhFMINsAkQ=; Message-ID: <248507.5047.qm@web58505.mail.re3.yahoo.com> X-YMail-OSG: 0n90fpcVM1lheuTUZwddzzIy6Uy8WJQRei8mVhPEGXS156fm04.NvRyp15o1Hr5PMWPCTJTEeEYb9k_kdCM.UdHV.M8ZpHYSuqXQITYmsvqd5IuhOBN13zdwqK8lSJiYB9zMrEKChM2N3aM5fRDSy9vYFhDN6sgTwEe7FUiP1EKUvF4xMc3drJxEemv2.u.K7mG.I14QZiiBrLiONNunXtZRHSJW0wL6LFSVPmpHTvG9SffqoPnQu4647ZHJ2_8gyVQ8UV7WKHbx0j4jdPtRI.5K703JeEVxyDHn90VmZTSEqcvHmO0Ts9kgeByxCVpEkdVG9wfyBZK0Q816ZxvNQdMpQG0Q2WEu_6kW74QOvvwJH7OotA-- Received: from [198.22.153.6] by web58505.mail.re3.yahoo.com via HTTP; Thu, 24 Sep 2009 12:51:35 PDT X-Mailer: YahooMailRC/157.18 YahooMailWebService/0.7.347.2 References: <97687.71494.qm@web58507.mail.re3.yahoo.com> <71a64ba60909231831j4c594066vba74608f93bd4511@mail.gmail.com> <512348.6994.qm@web58508.mail.re3.yahoo.com> <71a64ba60909231839t39ab3163r8774c744fb1fcfa1@mail.gmail.com> <664145.32658.qm@web58504.mail.re3.yahoo.com> <65702.59040.qm@web58502.mail.re3.yahoo.com> <980604.21709.qm@web58506.mail.re3.yahoo.com> Date: Thu, 24 Sep 2009 12:51:34 -0700 (PDT) From: T K Subject: Re: Horrible performance - how can I reclaim table space? To: Derby Discussion In-Reply-To: <980604.21709.qm@web58506.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1830855086-1253821895=:5047" X-Virus-Checked: Checked by ClamAV on apache.org --0-1830855086-1253821895=:5047 Content-Type: text/plain; charset=us-ascii The space was reclaimed by the stored proc when the database was "quiet" as I describe it below - that's my definition of true offline mode. This makes me suspect that, before, the stored proc may have tried to X-lock the table a couple of times and may have failed and given up while the database was heavily utilized, but this is just a theory. However, the most significant issue at the moment related to unreclaimed space seems to be bugs http://issues.apache.org/jira/browse/DERBY-4054 and http://issues.apache.org/jira/browse/DERBY-4055 which have yet to be resolved. ________________________________ From: T K To: Derby Discussion Sent: Thursday, September 24, 2009 8:14:56 AM Subject: Re: Horrible performance - how can I reclaim table space? Yes that's the one I am calling and the space is not reclaimed. ________________________________ From: Knut Anders Hatlen To: Derby Discussion Sent: Thursday, September 24, 2009 4:00:52 AM Subject: Re: Horrible performance - how can I reclaim table space? T K writes: > BTW, I have to ask this question: how exactly do we define OFFLINE > compression? I assume I still bring the database up and call the compression > stored proc from ij, but no one else connects, correct? When people talk about offline compression, I think they mean the SYSCS_UTIL.SYSCS_COMPRESS_TABLE routine, as opposed to SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE. Probably, the use of online/offline when talking about compression is due to confusion with the backup terminology. -- Knut Anders --0-1830855086-1253821895=:5047 Content-Type: text/html; charset=us-ascii
The space was reclaimed by the stored proc when the database was "quiet" as I describe it below - that's my definition of true offline mode. This makes me suspect that, before, the stored proc may have tried to X-lock the table a couple of times and may have failed and given up while the database was heavily utilized, but this is just a theory.

However, the most significant issue at the moment related to unreclaimed space seems to be bugs http://issues.apache.org/jira/browse/DERBY-4054 and http://issues.apache.org/jira/browse/DERBY-4055 which have yet to be resolved.


From: T K <sanokistoka@yahoo.com>
To: Derby Discussion <derby-user@db.apache.org>
Sent: Thursday, September 24, 2009 8:14:56 AM
Subject: Re: Horrible performance - how can I reclaim table space?

Yes that's the one I am calling and the space is not reclaimed.


From: Knut Anders Hatlen <Knut.Hatlen@Sun.COM>
To: Derby Discussion <derby-user@db.apache.org>
Sent: Thursday, September 24, 2009 4:00:52 AM
Subject: Re: Horrible performance - how can I reclaim table space?

T K <sanokistoka@yahoo.com> writes:

> BTW, I have to ask this question: how exactly do we define OFFLINE
> compression? I assume I still bring the database up and call the compression
> stored proc from ij, but no one else connects, correct?

When people talk about offline compression, I think they mean the
SYSCS_UTIL.SYSCS_COMPRESS_TABLE routine, as opposed to
SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE. Probably, the use of
online/offline when talking about compression is due to confusion with
the backup terminology.

--
Knut Anders


--0-1830855086-1253821895=:5047--