Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 78968 invoked from network); 2 Mar 2010 00:28:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 00:28:29 -0000 Received: (qmail 55921 invoked by uid 500); 2 Mar 2010 00:28:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 55719 invoked by uid 500); 2 Mar 2010 00:28:26 -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 55703 invoked by uid 99); 2 Mar 2010 00:28:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 00:28:26 +0000 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, 02 Mar 2010 00:28:26 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D4FB8234C4AB for ; Tue, 2 Mar 2010 00:28:05 +0000 (UTC) Message-ID: <1414307640.45701267489685871.JavaMail.jira@brutus.apache.org> Date: Tue, 2 Mar 2010 00:28:05 +0000 (UTC) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4538) If the CREATE TRIGGER does not have the REFERENCING clause, then there is no need to keep before and after values for the triggering table In-Reply-To: <258496003.60851265351547998.JavaMail.jira@brutus.apache.org> 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-4538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839933#action_12839933 ] Mamta A. Satoor commented on DERBY-4538: ---------------------------------------- Knut, thanks for reviwing the patch. I committed the chnages after removing the redundant ; I will go ahead and close this issue. > If the CREATE TRIGGER does not have the REFERENCING clause, then there is no need to keep before and after values for the triggering table > ------------------------------------------------------------------------------------------------------------------------------------------ > > Key: DERBY-4538 > URL: https://issues.apache.org/jira/browse/DERBY-4538 > Project: Derby > Issue Type: Improvement > Components: SQL > Affects Versions: 10.6.0.0 > Reporter: Mamta A. Satoor > Assignee: Mamta A. Satoor > Priority: Minor > Attachments: DERBY4538_NoReferencingClause_diff_v1.txt, DERBY4538_NoReferencingClause_diff_v2.txt, DERBY4538_NoReferencingClause_stat_v1.txt, DERBY4538_NoReferencingClause_stat_v2.txt > > > In order for the trigger action to have access to before and after values of the triggering table, the CREATE TRIGGER should use the REFERENCING clause. Without the REFERENCING clause, old and new values of triggering table can't be accessed by the trigger action. Based on this, we can improve Derby memory utilization by not keeping old and new values if REFERENCING clause is missing. It will be good to see if the code already does this optimization and if not, then introducing this optimization will definitely be very useful when the triggering table could have LOB columns. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.