Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BB3F0200B40 for ; Fri, 1 Jul 2016 15:20:43 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B9C49160A61; Fri, 1 Jul 2016 13:20:43 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0AA05160A5D for ; Fri, 1 Jul 2016 15:20:42 +0200 (CEST) Received: (qmail 41893 invoked by uid 500); 1 Jul 2016 13:20:42 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 41881 invoked by uid 99); 1 Jul 2016 13:20:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2016 13:20:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 56C20C034F for ; Fri, 1 Jul 2016 13:20:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id bFttU_m72VEG for ; Fri, 1 Jul 2016 13:20:39 +0000 (UTC) Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id AE92A5FBA6 for ; Fri, 1 Jul 2016 13:20:38 +0000 (UTC) Received: by mail-io0-f175.google.com with SMTP id s63so99868959ioi.3 for ; Fri, 01 Jul 2016 06:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=8ipMVrimJ8VclA1jwO7ydVKBOPEFtlWoFIBGCmGt/6E=; b=za+WRhnbsXbKtO01qTTwFv1KXwwGxZ61OBKUOmOnA7723m6JdWA43N1GOThkTuyKbV 4vDft8Q+zIlGH9Yz58pEo2kuT7ne31Wb41mpxDNRE3s/13deSc7C4eGZczzNCQ+PizCJ y8rcZPg5Zc9FIkQSe+qY8I26ZTQAQQnaks+Steh+7564BvtIfnUoLCdu7pM2KB44jw7y 4P2+r5TJ+3rjBHwHVjMPHT+CnXa8JfMsMzKv2riCGjJWijIf4rZaJlYg37bq9wyQkyZ1 6u44T6ZIK4uF4dM1/za+6hfqBEVQzzEsYSsVSgeKABQedeJwTiAQ5mpL9xLw8ao09llV RN6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=8ipMVrimJ8VclA1jwO7ydVKBOPEFtlWoFIBGCmGt/6E=; b=iXbOR6+Feh9KefOrIFzCLl4O9LOVCKRGdJdCCbRTQpwATBV++srRHr1yjFKGBIki51 TZlgZ41++FvKkTshXdqC0ZZ7YMq+xvU69ZAKMoIvG9F+Z9S0TpRSPv+0PZzJNXEX47Vu 2m2gXTuDYVUueNA5zC5XjZmmNii5axX0TchXZWWUy4xgsl9CEmhIwg2S8KrWoKErhJmV 2qUYCLvv4X59rHOBsIIGauTXdoZj05ShUl0F8broseL3QBtdqiyY07K6/lTAwd4mn0GU hSdO/kgTpGM0Sx6IVsVYpt4msz1OGZ4racuGct+Ya259yrb481KiGo1VZ4Sik0/B5+u3 iJeQ== X-Gm-Message-State: ALyK8tIAb843vfAJtWRISj16bNqtHrnk9K5VGrbH96wNljzAfLbLO2Gbf081gJBUsy39mlcmGdk7qA/jVxweKA== X-Received: by 10.107.21.66 with SMTP id 63mr18811519iov.59.1467379231829; Fri, 01 Jul 2016 06:20:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.184.196 with HTTP; Fri, 1 Jul 2016 06:20:02 -0700 (PDT) In-Reply-To: References: <6c4f15e9-414f-8dba-6fe4-ae540c5edf33@maniatis.org> <0CF88A49-AA41-4160-9CE5-222582D38C83@objectstyle.org> From: Michael Gentry Date: Fri, 1 Jul 2016 09:20:02 -0400 Message-ID: Subject: Re: Order of operations? To: Cayenne Users Content-Type: multipart/alternative; boundary=94eb2c05c72add4113053692d9ec archived-at: Fri, 01 Jul 2016 13:20:43 -0000 --94eb2c05c72add4113053692d9ec Content-Type: text/plain; charset=UTF-8 Constraints can get even more complex, like Oracle and PostgreSQL (perhaps others) allow deferrable constraints, which are nice, but MySQL will blow up immediately if a constraint fails even if it'll be satisfied by the end of the transaction. On Fri, Jul 1, 2016 at 9:09 AM, Aristedes Maniatis wrote: > On 1/07/2016 8:57pm, Andrus Adamchik wrote: > > > >> On Jun 30, 2016, at 11:04 PM, Aristedes Maniatis > wrote: > >> > >> 1. The Cayenne model will need to have additional metadata about > database indexes and constraints. I've always liked that idea anyway but > lacked the time to work on it personally. It could open up interesting > interactions with projects like liquibase [1] > > > > We already have information about relationships (that are essentially FK > constraints). Why do we need to know about indexes for ordering purposes? > > I was just thinking about db constraints really. For example, a unique > index on a field (other than the PK) might need to be taken into > consideration if you were deleting and creating records. The delete has to > happen before the create, or they need to be coalesced into a single update. > > Ari > > > > -- > --------------------------> > Aristedes Maniatis > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A > --94eb2c05c72add4113053692d9ec--