Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 59109 invoked from network); 19 May 2006 14:47:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 May 2006 14:47:25 -0000 Received: (qmail 80562 invoked by uid 500); 19 May 2006 14:47:24 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 80538 invoked by uid 500); 19 May 2006 14:47:24 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 80474 invoked by uid 99); 19 May 2006 14:47:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 07:47:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [198.204.134.67] (HELO mail1.fanniemae.com) (198.204.134.67) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 May 2006 07:47:22 -0700 Received: from psysadm-mail02a.fanniemae.com (peuser-fw01ab [10.128.16.247]) by mail1.fanniemae.com (8.11.7p1+Sun/8.11.7) with ESMTP id k4JEkwT21444 for ; Fri, 19 May 2006 10:47:00 -0400 (EDT) Received: from psysadm-mail03a.fanniemae.com (psysadm-mail03a [198.204.145.151]) by psysadm-mail02a.fanniemae.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k4JEkvU3017219 for ; Fri, 19 May 2006 10:46:58 -0400 (EDT) X-FNMA: MAIL03-PROD Received: from EXRSOW01.fanniemae.com (exrsow01.fanniemae.com [10.19.180.7]) by psysadm-mail03a.fanniemae.com (8.11.7p1+Sun/8.11.7) with ESMTP id k4JEkvW09299 for ; Fri, 19 May 2006 10:46:57 -0400 (EDT) Received: from EXVF.fanniemae.com ([10.19.180.50]) by EXRSOW01.fanniemae.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 19 May 2006 10:46:57 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Can I use the CayenneModeler to set up indexes? If so, how? Date: Fri, 19 May 2006 10:46:57 -0400 Message-ID: <110DED9F5106CC47A186602C0DD3938201168A32@EXVF.fanniemae.com> In-Reply-To: <20060519111528.46854.qmail@web30503.mail.mud.yahoo.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Can I use the CayenneModeler to set up indexes? If so, how? Thread-Index: AcZ7NZh2wtEPZahXSUuKXTpL13GKDQAD9iyg From: "Gentry, Michael \(Contractor\)" To: X-OriginalArrivalTime: 19 May 2006 14:46:57.0623 (UTC) FILETIME=[14179670:01C67B53] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The modeler currently doesn't allow you to specify arbitrary indexes. This could be added to the wish list, but would mainly be used while developing a schema (not while maintaining an in-production schema). My preferred approach is to have upgrade scripts that are checked into the SCM repository. You can use filenames like schema_001.sql, schema_002.sql, etc. Makes it easy to sequence them and is highly reproducible. It also clearly documents your changes. It would be a very difficult problem for the modeler to be able to automatically determine the required changes from one schema to another -- and you'd have to force the DBAs to run the modeler then, too. I don't know of a good schema migration tool. /dev/mrg -----Original Message----- From: Eric Lazarus [mailto:ericllazarus@yahoo.com]=20 Sent: Friday, May 19, 2006 7:15 AM To: cayenne user Subject: Can I use the CayenneModeler to set up indexes? If so, how? Can I use the CayenneModeler to set up indexes? If so, how? Can someone share an example, a screen shot or something? If not, how do others deal with this? Do I write a little shell script that does SQL queries to add those indexes when I re-gen the database?=20 On a separate note, does anyone know a good schema migration tool we can use when we, after we deploy, we end up with changes to our relational and object models and we need to move data forward (and, in an emergency perhaps, backward)? Eric __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20