Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 51276 invoked from network); 10 Jul 2008 09:48:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2008 09:48:53 -0000 Received: (qmail 82017 invoked by uid 500); 10 Jul 2008 09:48:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 81801 invoked by uid 500); 10 Jul 2008 09:48:53 -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 81695 invoked by uid 99); 10 Jul 2008 09:48:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 02:48:53 -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; Thu, 10 Jul 2008 09:48:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E49CF234C166 for ; Thu, 10 Jul 2008 02:48:31 -0700 (PDT) Message-ID: <1605223420.1215683311935.JavaMail.jira@brutus> Date: Thu, 10 Jul 2008 02:48:31 -0700 (PDT) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-3723) Reset current schema to default (user name) when creating a new logical connection in the client driver In-Reply-To: <15317548.1213611345521.JavaMail.jira@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-3723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan closed DERBY-3723. ---------------------------------- Closing. > Reset current schema to default (user name) when creating a new logical connection in the client driver > ------------------------------------------------------------------------------------------------------- > > Key: DERBY-3723 > URL: https://issues.apache.org/jira/browse/DERBY-3723 > Project: Derby > Issue Type: Improvement > Components: JDBC, Network Client > Affects Versions: 10.1.3.1, 10.2.2.0, 10.3.3.0, 10.4.1.3 > Environment: Primarily when connection pooling and statement caching are used. > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Priority: Minor > Fix For: 10.4.1.4, 10.5.0.0 > > Attachments: derby-3723-1a-client_schema_reset.diff > > > The current schema is used as part of the lookup key for the client side JDBC statement cache. With the current implementation, the schema is explicitly fetched from the server by executing a "VALUES CURRENT SCHEMA" query after a new logical connection has been created. This hurts performance when using the JDBC statement cache, and in some cases it performs worse than running without a client side JDBC statement cache. > The performance can be improved by resetting the current schema to the default on the client when a new logical connection is created. The user name is used as the default schema in Derby. > Note that this issue is regarding logical connections. There is no API for changing the user name, or default schema, for a logical connection. This ensures the schema must be set to the associated user name for a newly created logical connection. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.