Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 55829 invoked from network); 24 May 2006 19:27:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 May 2006 19:27:49 -0000 Received: (qmail 25882 invoked by uid 500); 24 May 2006 19:27:49 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 25850 invoked by uid 500); 24 May 2006 19:27:48 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 25841 invoked by uid 99); 24 May 2006 19:27:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 12:27:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [32.97.110.150] (HELO e32.co.us.ibm.com) (32.97.110.150) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 12:27:47 -0700 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e32.co.us.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k4OJRQ0C032091 for ; Wed, 24 May 2006 15:27:26 -0400 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k4OJRQ9k271400 for ; Wed, 24 May 2006 13:27:26 -0600 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k4OJRQGO021372 for ; Wed, 24 May 2006 13:27:26 -0600 Received: from [127.0.0.1] (DMCSDJDT41P.usca.ibm.com [9.72.133.156]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k4OJRPJY021197 for ; Wed, 24 May 2006 13:27:26 -0600 Message-ID: <4474B371.80902@apache.org> Date: Wed, 24 May 2006 12:26:41 -0700 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en, de MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: [Derby-655] : getImportedKeys returns duplicate rows in some cases References: In-Reply-To: X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Mamta Satoor wrote: [snip of first ten paragraphs] This is very useful, but I have two quick clarifying questions on the 11th paragragh. > In order to improve Derby's performance in conglomerate maintenance > area, in > Derby 10.0, few changes were made in > org.apache.derby.impl.sql.execute.CreateIndexConstantAction.executeConstantAction, > > so that if a new (backing)index was detected to be a duplicate of an > existing index, then rather than creating a new conglomerate for it, the > new > index would share the conglomerate that was already created for the > existing > duplicate index. Q1) For this next sentence, should the first 'SYSCONGLOMERATES' be replaced with 'SYSCONSTRAINTS'? > So, an entry will be made into SYSCONGLOMERATES for the > new constraint and an entry will be made into SYSCONGLOMERATES for the new > constraint but the CONGLOMERATEID of the new constraint will be same as the > CONGLOMERATEID of the existing duplicate index. Q2) Does this mean that the CONGLOMERATEID is no longer unique within SYSCONGLOMERATES as described in the reference manual? It seems that there is now a separation of congomerates into logical congomerates (rows in SYSCONGLOMERATES) and physical conglomerates (files on disk). But what you describe has the CONGLOMERATEID being the physical identifier when it seems it should be a unique identifier for the logical conglomerate. I would have thought the CONGLOMERATENUMBER would be the physical identifier, thus in the situation you describe I would expect two rows in SYSCONGLOMERATES with the same CONGLOMERATENUMBER but unique CONGLOMERATEIDs. Thanks, Dan.