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 > Some questions

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-10, 20:35
uhm uhm is offline
Registered User
 
Join Date: Mar 2010
Posts: 8
Some questions

Hello,

I'm starting the development of a new project

The DB will be used to store hundreds of thousands of products ( probably millions), thousands of such products will be updated every day.
This database will be used to power several websites, I don't expect the traffic to explode on these sites, but I don't want to build something with no chances to perform well.

MyISAM or INNODB? I continue to find opinions of any kind on this subject

how would you prevent websites to be slow while the database is being updated ( hence being hit by thousands of SELECT/INSERT/UPDATE queries) ?
Reply With Quote
  #2 (permalink)  
Old 03-22-10, 22:18
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
Quote:
Originally Posted by uhm View Post
MyISAM or INNODB? I continue to find opinions of any kind on this subject
MyISAM for read-only tables and for fulltext search

InnoDB for foreign key data integrity and row-level locking on updates

Quote:
Originally Posted by uhm View Post
how would you prevent websites to be slow while the database is being updated ( hence being hit by thousands of SELECT/INSERT/UPDATE queries) ?
InnoDB
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 03-23-10, 18:25
uhm uhm is offline
Registered User
 
Join Date: Mar 2010
Posts: 8
So you suggest using two separate tables, one Innodb for backend INSERT/UPDATE operations and one, MyISAM, for websites.

What would be the best approach to create the MyISAM table from the InnoDB table content?

Simply using something like this?
Code:
CREATE TABLE aaa SELECT * FROM products;
are there smarter/faster methods?

What about a view?
Reply With Quote
  #4 (permalink)  
Old 03-23-10, 19:14
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
Quote:
Originally Posted by uhm View Post
So you suggest using two separate tables, one Innodb for backend INSERT/UPDATE operations and one, MyISAM, for websites.
that's not exactly what i meant

i would use innodb exclusively unless i had a reason to need myisam, and then i would not duplicate the data either
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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