If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > InnoDB & Foreign Key Constraints or MyISAM & Speed?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-19-10, 20:10
Kiada Kiada is offline
Registered User
 
Join Date: Mar 2010
Posts: 7
InnoDB & Foreign Key Constraints or MyISAM & Speed?

For my site MyISAM appears to be the logical choice - many more SELECT queries than UPDATE and things. The only thing I'm not too sure about is MyISAM's lack of foreign key constraints - though I've read elsewhere that these can be provided using stored procedures and triggers. Now I'm fairly new to this, so the whole replacing native foreign key constraints within InnoDB with learning a new language and creating procedures is a bit daunting.

Would it be best just to go with InnoDB?

If not, can anybody point me towards a useful guide or resource regarding creating foreign key constraints using stored procedures for MyISAM? I can't seem to find anything (which leads me to wonder if I've got confused somewhere along the line - if so please correct me )

Any help appreciated
Reply With Quote
  #2 (permalink)  
Old 03-20-10, 00:54
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,085
Quote:
Originally Posted by Kiada View Post
Would it be best just to go with InnoDB?
absolutely

this whole "myisam is faster than innodb" business is a myth

and re-inventing the FK wheel seems really silly, no offence
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On