Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 77333 invoked from network); 11 Nov 2009 07:39:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Nov 2009 07:39:03 -0000 Received: (qmail 49000 invoked by uid 500); 11 Nov 2009 07:39:03 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 48939 invoked by uid 500); 11 Nov 2009 07:39:02 -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 48931 invoked by uid 99); 11 Nov 2009 07:39:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2009 07:39:02 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Wed, 11 Nov 2009 07:39:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C0C30234C4AC for ; Tue, 10 Nov 2009 23:38:39 -0800 (PST) Message-ID: <1880228201.1257925119766.JavaMail.jira@brutus> Date: Wed, 11 Nov 2009 07:38:39 +0000 (UTC) From: "martin (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Issue Comment Edited: (DERBY-1664) Derby startup time is too slow In-Reply-To: <32150767.1155233114573.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-1664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766531#action_12766531 ] martin edited comment on DERBY-1664 at 11/11/09 7:37 AM: --------------------------------------------------------- Startup is slow especially when database was not shut down properly. This seems be user's problem, as it is his responsibility to ensure proper shutdown procedure. Here is a little problem: while embedded engine starts silently at user's request, user should shutdown engine explicitly. While first part conforms zero administration claim, the second part is in direct contradiction of the claim. Typical scenario is: application uses a connection pool - it may connect to a production database or local testing database. For testing database, embedded derby is used. Connection pool like C3P0 can start the embedded driver, but has no method for shutdown. When application starts next times with embedded database, starts are getting slower and slower as database grows. I think shutdown hooks installed at engine startup should solve the situation. This was proposed long time ago, but never implemented. was (Author: mstanik): Startup is slow especially when database was not shut down properly. This seems be user's problem, as it is his responsibility to ensure proper shutdown procedure. Here is a little problem: while embedded engine starts silently at user's request, user should shutdown engine explicitly. While first part conforms zero administration claim, the second part is in direct contradiction of the claim. Typical scenario is: application uses a connection pool - it may connect to a production database or local testing database. For testing database, embedded derby is used. Connection pool can start the embedded driver, but has no method for shutdown. When application starts next times with embedded database, starts are getting slower and slower as database grows. I think shutdown hooks installed at engine startup should solve the situation. This was proposed long time ago, but never implemented. > Derby startup time is too slow > ------------------------------ > > Key: DERBY-1664 > URL: https://issues.apache.org/jira/browse/DERBY-1664 > Project: Derby > Issue Type: Improvement > Components: Store > Reporter: David Van Couvering > Attachments: perftest.diff > > > I know it's hard to measure what "too slow" is, but this is a common complaint and this affects overall perception of Derby. This appears to be related to another common complaint that it takes too long to create tables. I am marking this as Urgent because of the impact it has to Derby perception and the fact that the 10.2 release is going to get such wide distribution through the Sun JDK. > For background, see http://www.nabble.com/Startup-time-tf2012748.html#a5531684 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.