Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E16D197D2 for ; Mon, 31 Oct 2011 17:09:53 +0000 (UTC) Received: (qmail 60217 invoked by uid 500); 31 Oct 2011 17:09:53 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 60164 invoked by uid 500); 31 Oct 2011 17:09:52 -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 60140 invoked by uid 99); 31 Oct 2011 17:09:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Oct 2011 17:09:52 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [98.139.44.135] (HELO nm8.access.bullet.mail.sp2.yahoo.com) (98.139.44.135) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 31 Oct 2011 17:09:43 +0000 Received: from [98.139.44.99] by nm8.access.bullet.mail.sp2.yahoo.com with NNFMP; 31 Oct 2011 17:09:21 -0000 Received: from [98.139.44.91] by tm4.access.bullet.mail.sp2.yahoo.com with NNFMP; 31 Oct 2011 17:09:21 -0000 Received: from [127.0.0.1] by omp1028.access.mail.sp2.yahoo.com with NNFMP; 31 Oct 2011 17:09:21 -0000 X-Yahoo-Newman-Id: 882281.38260.bm@omp1028.access.mail.sp2.yahoo.com Received: (qmail 57765 invoked from network); 31 Oct 2011 17:09:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=XiVJxO2GZGyHzqZKA4Pa/nByMXPUsI5X/T8IVF2MZFDUsgGCaC7svQauwk12lKTmTJ0EGN+ULJ5yu5s2+9nmich75dBIsh1y7XU8Z1aM/wZMXUpuPNPKcU1e73uOFyTMfVHQvbnpOmy4/0a8la5I/dy4DHw6OxR9io9aGhh1LA8= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1320080960; bh=p5Ub/CJHxEQ3g13MwArWGIVzg96eCZ8TIeadmhohwH4=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=jEWmgVzgRARTNn3M5WzYmzA7Axwqb1I1QKrZAI3a3yb9E3IcknMxv8SYiyYPrHlk+dsQ7w7Sf3loum2UonFeYxHtSKAm67iS1dBhONOhw9LfcdlBPbMR/tJK7fWBfMW2xw/r/P3Z/8J3ezfOXqHqFVWFbmt2OzBuazLD9kxADR4= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 8unOPx0VM1mCKMerHlo1pVIxkPTjYDOJMVAlGEsXQ5.th2q FQumcwH2OyjKI1K_e4H6cPAoJuj1WlzYNEdtLW55IWX3qlzuXjO0Iq91kjEx XOpC28Vb59aplIrJ8xoWwgcty_z4No4msSvgHSey_etZDFT6WlsHN3THJQbI dMBVMwzZX3Wm70VxQ9s7_sePyP1GV2mjludePHr73LEHSTL7DYQt4HWFyTMV 5FaNhJBighf7Ukb8yk7IZRTwDjfjqrSynHDUZQukMWnNBVQR8_cN2VRx13Kq Hzt.7xcXfc1R50tVL8R_LFo84gaA7Vl8T5nh3OXyGzpyRKTFY9k7VZ78Wkgs qkZ1J2NuZLDJlAK6YWmGIgA85ZxkVGyHFNBoeoMvDIKs24GghP36o7VVcClN j8OkOLb4EsOieqdCUzWNG09ceHj9W8ZGwpYp_X7XPqMnY5llWZPfRKQ-- X-Yahoo-SMTP: 0mCmWXSswBCWOCMKYdwRsTx1yUFXw1u4Y1Itob3JXDF8Loh0 Received: from [9.72.133.47] (mikem_app@32.97.110.55 with plain) by smtp101.sbc.mail.gq1.yahoo.com with SMTP; 31 Oct 2011 10:09:20 -0700 PDT Message-ID: <4EAED637.1090309@sbcglobal.net> Date: Mon, 31 Oct 2011 10:09:11 -0700 From: Mike Matrigali User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Derby Discussion Subject: Re: SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE question References: <1319776014.2665.YahooMailNeo@web112411.mail.gq1.yahoo.com> <4EAB0D80.504@sbcglobal.net> <32742387.post@talk.nabble.com> In-Reply-To: <32742387.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I am thinking about this issue, thank you for reporting. Sundar Narayanaswamy wrote: > I have posted the issue to DERBY-5487. I have also attached the Java test > program. > > The test rows do insert at one end of the primary key and delete the other > end.. Interestingly, I noticed that primary key space is reclaimed if I > reuse the primary keys across the insert-delete loops. But, my application This is not surprising, it confirms that in general the reclaim space at split time works well for uniform type index distributions. Your application is the 2nd worst case for Derby. I don't know if we can fix at row level, but there may be some extra work we can do to try and get table level locks and do page merging more often and/or in inplace compress. For your specific application would it work if inplace compress got table level locks during the purge phase? The worst case for Derby would be a data distribution of an index which resulted in one row on each leaf. There is not support for merging non-empty leaf pages other than full offline compress. Anyone know if this case is handled in other databases? > requires me to use continuously increasing primary keys (not reuse them). > > > Mike Matrigali wrote: >> Posting your test to a JIRA issue would be best. It would be >> interesting to post the space table results after each >> insert/delete/compress iteration (or every 10, ...). >> When do you commit (every row or every 10000)? Is it multi-threaded? >> Does your >> test always insert rows at one end of the index and delete them >> from the other end. If so it may be DERBY-5473 (a runtime issue, >> not a compress table issue). >> >> >