Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9638810015 for ; Tue, 29 Apr 2014 00:26:34 +0000 (UTC) Received: (qmail 60407 invoked by uid 500); 29 Apr 2014 00:26:31 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 60314 invoked by uid 500); 29 Apr 2014 00:26:29 -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 60120 invoked by uid 99); 29 Apr 2014 00:26:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 00:26:25 +0000 Date: Tue, 29 Apr 2014 00:26:25 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DERBY-532) Support deferrable constraints MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-532?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13983= 787#comment-13983787 ]=20 Dag H. Wanvik commented on DERBY-532: ------------------------------------- Patch derby-532-fk-7 adds wiring of ForeignKeysDeferrableTest into the lang= suite, no other changes compared to #6. > Support deferrable constraints > ------------------------------ > > Key: DERBY-532 > URL: https://issues.apache.org/jira/browse/DERBY-532 > Project: Derby > Issue Type: Improvement > Components: SQL > Reporter: J=C3=B6rg von Frantzius > Assignee: Dag H. Wanvik > Labels: derby_triage10_11 > Fix For: 10.11.0.0 > > Attachments: IndexDescriptor.html, IndexDescriptorImpl.html, Inde= xRowGenerator.html, SortObserver.html, deferredConstraints.html, deferredCo= nstraints.html, deferredConstraints.html, deferredConstraints.html, deferre= dConstraints.html, derby-532-allow-pk-unique-1.diff, derby-532-allow-pk-uni= que-1.status, derby-532-check-constraints-1.diff, derby-532-check-constrain= ts-1.stat, derby-532-check-constraints-2.diff, derby-532-check-constraints-= 2.stat, derby-532-fix-drop-not-nullable.diff, derby-532-fix-drop-not-nullab= le.status, derby-532-fix-metadata-1.diff, derby-532-fix-metadata-1.status, = derby-532-fk-1.diff, derby-532-fk-3.diff, derby-532-fk-3.stat, derby-532-fk= -4.diff, derby-532-fk-5.diff, derby-532-fk-5.stat, derby-532-fk-6.diff, der= by-532-fk-6.stat, derby-532-fk-7.diff, derby-532-fk-7.stat, derby-532-fk-ba= seline-2.diff, derby-532-fk-baseline.diff, derby-532-import-1.diff, derby-5= 32-import-1.status, derby-532-import-2.diff, derby-532-import-3.diff, derby= -532-import-3.status, derby-532-more-tests-1.diff, derby-532-more-tests-1.s= tat, derby-532-nullableUniqueFix.diff, derby-532-nullableUniqueFix.status, = derby-532-post-scan-1.diff, derby-532-post-scan-1.stat, derby-532-post-scan= -2.diff, derby-532-post-scan-2.stat, derby-532-post-scan-3.diff, derby-532-= post-scan-3.stat, derby-532-post-scan-4.diff, derby-532-post-scan-4.stat, d= erby-532-serializable-scan-1.diff, derby-532-serializable-scan-2.diff, derb= y-532-serializable-scan-2.stat, derby-532-syntax-binding-dict-1.diff, derby= -532-syntax-binding-dict-1.status, derby-532-syntax-binding-dict-2.diff, de= rby-532-syntax-binding-dict-2.status, derby-532-syntax-binding-dict-all-1.d= iff, derby-532-test-speedup.diff, derby-532-test-speedup.status, derby-532-= test-with-default-deferrable-all-over.diff, derby-532-testAlterConstraintIn= validation.diff, derby-532-testAlterConstraintInvalidation.status, derby-53= 2-unique-pk-1.diff, derby-532-unique-pk-1.status, derby-532-unique-pk-2.dif= f, derby-532-unique-pk-3.diff, derby-532-unique-pk-3.status, derby-532-upgr= ade-1.diff, derby-532-upgrade-1.status, derby-532-upgrade-1b.diff, derby-53= 2-xa-1.diff, derby-532-xa-2.diff, derby-532-xa-3.diff, derby-532-xa-3.statu= s > > > In many situations it is desirable to have constraints checking taking pl= ace only at transaction commit time, and not before. If e.g. there is a cha= in of foreign key constraints between tables, insert statements have to be = ordered to avoid constraint violations. If foreign key references are circu= lar, the DML has to be split into insert statements and subsequent update s= tatements by the user. > In other words, with deferred constraints checking, life is much easier f= or the user. Also it can create problems with softwares such as object-rela= tional mapping tools that are not prepared for statement ordering and thus = depend on deferred constraints checking. -- This message was sent by Atlassian JIRA (v6.2#6252)