• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Foreign Keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Foreign Keys


  • Subject: Re: Foreign Keys
  • From: Kieran Kelleher <email@hidden>
  • Date: Fri, 13 Apr 2012 16:47:23 -0400

(1) Never use MyISAM - no transactional support means a failed editingContext.saveChanges() will not result in a rollback and semi-saved changes to the database..... data integrity goes out the window. Use InnoDB .... don't just convert live DB though, dump/import to a standby server, configure InnoDB first completely and actually do a little bit of studying the MySQL docs to understand how. Also, get a head start here: https://github.com/kierankelleher/gic-mysql-tools

(2) Don't create "real" foreign key constraints because MySQL does not support deferred constraints (which is the biggest negative of using MySQL). Instead just manually create indexes on every foreign key field. Otherwise your performance will deteriorate as tables sizes get larger.


On Apr 13, 2012, at 8:20 AM, Ron X wrote:

sorry, we check - we used MyISAM - and it has not transactions and foreign keys

13 апреля 2012 г. 15:09 пользователь Pascal Robert <email@hidden> написал:

Le 2012-04-13 à 07:50, Ron X a écrit :

> hi community
>
> does EOF use foreign keys?
>
> we use in Migration java class:
>
>         ERXMigrationTable oldCodeTable = database.newTableNamed("Code");
>
>         oldCodeTable.addForeignKey("repTypeId", "rep_type", "_rowid");
>         oldCodeTable.addForeignKey("actionId", "action", "_rowid");
>
> but no foreign keys created.
>
> we scanned our 40G db and find NO foreign keys in it

Which database system?



Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Foreign Keys (From: Ron X <email@hidden>)
 >Re: Foreign Keys (From: Pascal Robert <email@hidden>)
 >Re: Foreign Keys (From: Ron X <email@hidden>)

  • Prev by Date: Re: WOCommunity Logo - My proposal
  • Next by Date: Re: WOCommunity Logo - My proposal
  • Previous by thread: Re: Foreign Keys
  • Next by thread: Re: MariaDB
  • Index(es):
    • Date
    • Thread