Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 55693 invoked from network); 5 Aug 2008 14:21:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 14:21:06 -0000 Received: (qmail 713 invoked by uid 500); 5 Aug 2008 14:21:04 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 690 invoked by uid 500); 5 Aug 2008 14:21:04 -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 679 invoked by uid 99); 5 Aug 2008 14:21:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 07:21:04 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 14:20:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C5F13234C18C for ; Tue, 5 Aug 2008 07:20:44 -0700 (PDT) Message-ID: <574025030.1217946044809.JavaMail.jira@brutus> Date: Tue, 5 Aug 2008 07:20:44 -0700 (PDT) From: "Andy Jefferson (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1996) DatabaseMetaData.getColumns() takes long time to return columns for a particular schema of Apache JDO TCK In-Reply-To: <27930245.1161714616491.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-1996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619891#action_12619891 ] Andy Jefferson commented on DERBY-1996: --------------------------------------- Any comment on when (approx) DatabaseMetaData.getColumns will be capable of giving reasonable performance in situations like this? or is there some SELECT that we can do ourselves to get the same basic information without having to go through getColumns() ?? Thx > DatabaseMetaData.getColumns() takes long time to return columns for a particular schema of Apache JDO TCK > --------------------------------------------------------------------------------------------------------- > > Key: DERBY-1996 > URL: https://issues.apache.org/jira/browse/DERBY-1996 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.2.1.6 > Reporter: Andy Jefferson > Attachments: testcase.zip > > > When running the Apache JDO "TCK", JPOX needs to query the columns for a particular schema, and so uses DatabaseMetaData.getColumns(null, schemaName, null, null). This takes the order of 3 minutes on a dual-core Pentium 3GHz (with large ram). I've cut the JPOX part down to a stand-alone test (will attach it). > Thing to note is that with only the schema files d_* installed it takes the order of 20secs. When the schema_* files are also installed then performance goes downhill fast (even though they are in different schemas ... all *.sql file represents a different schema). No point in me postulating what could be the issue since you guys are the Derby experts. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.