Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 26322 invoked from network); 8 Jun 2010 08:42:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jun 2010 08:42:47 -0000 Received: (qmail 57463 invoked by uid 500); 8 Jun 2010 08:42:47 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57318 invoked by uid 500); 8 Jun 2010 08:42:45 -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 57311 invoked by uid 99); 8 Jun 2010 08:42:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 08:42:44 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.6.24] (HELO gmp-eb-inf-2.sun.com) (192.18.6.24) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 08:42:35 +0000 Received: from fe-emea-13.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o588gEUj017127 for ; Tue, 8 Jun 2010 08:42:14 GMT MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=ISO-8859-1 Received: from conversion-daemon.fe-emea-13.sun.com by fe-emea-13.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0L3O00E00TCE9T00@fe-emea-13.sun.com> for derby-dev@db.apache.org; Tue, 08 Jun 2010 09:42:00 +0100 (BST) Received: from [129.159.112.134] ([unknown] [129.159.112.134]) by fe-emea-13.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0L3O00ELPTHY2Y70@fe-emea-13.sun.com> for derby-dev@db.apache.org; Tue, 08 Jun 2010 09:41:58 +0100 (BST) Date: Tue, 08 Jun 2010 10:41:58 +0200 From: Knut Anders Hatlen Subject: Re: Derby 10.6 upgrade problem In-reply-to: <4C6E699970AA394AB516EAB6599241AF0C5290@mdts001.mdte.local> Sender: Knut.Hatlen@Sun.COM To: derby-dev@db.apache.org Message-id: <4C0E0256.6040908@sun.com> References: <8CEFA5581D3F8249B6F9994644B91A980131DF5A@XBNEWEMA2.energex.com.au> <4C6E699970AA394AB516EAB6599241AF0C5290@mdts001.mdte.local> User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.9) Gecko/20100510 Lightning/1.0b1 Thunderbird/3.0.4 X-Virus-Checked: Checked by ClamAV on apache.org On 06/ 8/10 08:57 AM, Ray Gala wrote: > > Hi, > > We are trying to upgrade our existing Derby DB from version 10.2.2 to > the latest build 10.6. > Problem is that our database contains thousands of tables with the > names starting from "SURVEY_xxxxx" where xxxxx can be any integer from > 1 to 99999. Upgrade fails on this tables to the point that one cannot > access any of them, because apparently it takes a very long time to > open them. > > We staged a test in order to see how database handles creation of > thousands of similarly named tables. > > Below we will try to describe how the test was conducted. > > > > Process > > � Create a new blank database in 10.6 > > > > In a loop from 1 to 10000 { although I only managed to get to 1510 > over night} > > � Created a program that creates a table called SURVEY_X > > � Inserts � hour interval data from the range 2006-08-03 > 15:00:00 to 2009-01-15 00:00:00. 40,000 records. > > > > And this process repeats. > > > > Results > > � At the start (10:00 pm) a single cycle of create and insert > was taking 2 seconds - i.e Creation of SURVEY_1 > > � In the morning 7:00am it had only got to 1510 table and > insert creations, and was taking 2 minutes - i.e Creation of SURVEY_1510 > > > If I change the program (and use it on this database with the current > 1510 tables in it) to create a table called T_SURVEY_X then it goes > back to 2 seconds, although I suspect that if I left it running and we > had 1500 tables called T_SURVEY_X we would have the same problem. > > The symptom is also present in SQLWorkbench/J where it takes 2 seconds > to see table T_SURVEY_0 but 45 seconds to see SURVEY_1510 and even > after it presents the data it still seems to lock up etc. > > So this explains why with 6000 tables that we seem to get no response > at all. As you can see from the enclosed log performance starts > really degrading after a 1000 tables. > > Question: Is this a known issue, and can this be fixed? > Hi Ray, This is not a known issue, as far as I'm aware. I'd suggest that you file a bug report at https://issues.apache.org/jira/browse/DERBY and upload code that demonstrates the problem, so that it can be investigated. Thanks, -- Knut Anders