Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 11731 invoked from network); 27 Sep 2006 21:26:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2006 21:26:43 -0000 Received: (qmail 57942 invoked by uid 500); 27 Sep 2006 21:26:42 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 57904 invoked by uid 500); 27 Sep 2006 21:26:42 -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 57895 invoked by uid 99); 27 Sep 2006 21:26:42 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2006 14:26:42 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:37823] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 92/52-01778-19CEA154 for ; Wed, 27 Sep 2006 14:26:41 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 735C57141D1 for ; Wed, 27 Sep 2006 21:22:51 +0000 (GMT) Message-ID: <23449753.1159392171470.JavaMail.jira@brutus> Date: Wed, 27 Sep 2006 14:22:51 -0700 (PDT) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1879) Save meta data related information for an EmbedResultSet at the plan level instead of the ResultSet level improves performance. In-Reply-To: <23085619.1158947722360.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1879?page=all ] Daniel John Debrunner updated DERBY-1879: ----------------------------------------- Attachment: derby1879_diff.txt Patch which implements the two changes described. Needs some of the comments to be fixed. > Save meta data related information for an EmbedResultSet at the plan level instead of the ResultSet level improves performance. > ------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-1879 > URL: http://issues.apache.org/jira/browse/DERBY-1879 > Project: Derby > Issue Type: Improvement > Components: JDBC, Performance > Reporter: Daniel John Debrunner > Assigned To: Daniel John Debrunner > Priority: Minor > Attachments: derby1879_diff.txt > > > EmbedResultSet creates and holds references to information that logically is at the plan level, the same for all ResultSet's that use the same prepared plan. Holding this information at the EmbedResultSet hurts performance and memory usage as ResultSet objects are short lived. > Saving the ResultSetMetaData object in the ResultDescription object means a single creation for the lifetime of the plan (shared across connections), rather than once per ResultSet object as needed. > Saving the column name to position mapping added in DERBY-1862 in the ResultDescription has a similar benefit, the map is set up once per prepared plan, not once per executeQuery(). > With test changes (will attach patch soon), the performance of the derby1862 test in DERBY-1876 improves by around 15% -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira