Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 22958 invoked from network); 20 Mar 2007 23:35:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2007 23:35:58 -0000 Received: (qmail 75704 invoked by uid 500); 20 Mar 2007 23:36:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 75670 invoked by uid 500); 20 Mar 2007 23:36: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 75339 invoked by uid 99); 20 Mar 2007 23:36:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2007 16:36:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Mar 2007 16:35:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D436071407D for ; Tue, 20 Mar 2007 16:35:32 -0700 (PDT) Message-ID: <27863983.1174433732865.JavaMail.jira@brutus> Date: Tue, 20 Mar 2007 16:35:32 -0700 (PDT) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-1700) Remove passing of closeCleanup method to every ResultSet type since only the top ResultSet requires it. In-Reply-To: <9865333.1155673393921.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-1700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel John Debrunner closed DERBY-1700. ---------------------------------------- > Remove passing of closeCleanup method to every ResultSet type since only the top ResultSet requires it. > ------------------------------------------------------------------------------------------------------- > > Key: DERBY-1700 > URL: https://issues.apache.org/jira/browse/DERBY-1700 > Project: Derby > Issue Type: Improvement > Components: SQL > Reporter: Daniel John Debrunner > Assigned To: Daniel John Debrunner > Priority: Minor > Fix For: 10.2.1.6, 10.3.0.0 > > Attachments: derby1700_diff_p1.txt, derby1700_diff_p2.txt, derby1700_diff_p3.txt > > > A UNION node will generate byte code to call this method: > NoPutResultSet getUnionResultSet(NoPutResultSet source1, > NoPutResultSet source2, > Activation activation, > int resultSetNumber, > double optimizerEstimatedRowCount, > double optimizerEstimatedCost, > GeneratedMethod closeCleanup) > The closeCleanup method is passed in as null for all result sets in a tree except the top one. Instead of passing it on each new result set, it would be much more efficient to have a setCloseMethod() that is only called once for the top result set. Could also look at having an closeCleanup method in the interface and call it directly, rather than through reflection. > This applies to any node that takes a closeCleanup method. > Split out from DERBY-766 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.