Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 47726 invoked from network); 1 Mar 2010 11:16:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 11:16:27 -0000 Received: (qmail 42471 invoked by uid 500); 1 Mar 2010 11:16:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 42382 invoked by uid 500); 1 Mar 2010 11:16: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 42374 invoked by uid 99); 1 Mar 2010 11:16:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 11:16: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; Mon, 01 Mar 2010 11:16:26 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CE458234C48D for ; Mon, 1 Mar 2010 11:16:05 +0000 (UTC) Message-ID: <943805002.30971267442165843.JavaMail.jira@brutus.apache.org> Date: Mon, 1 Mar 2010 11:16:05 +0000 (UTC) From: "Knut Anders Hatlen (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=12839645#action_12839645 ] Knut Anders Hatlen commented on DERBY-4538: ------------------------------------------- v2 looks like a good incremental improvement. +1 to commit. (Nit: The declarations of needToIncludeAllColumns end with two semi-colons.) > 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.