BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 87396 thumbnail
User 212108 avatar

By legendx
via mikebernat.com
Published: Jun 15 2008 / 16:56

Most people who use MySQL know that MyISAM and InnoDB are the two most-common database engines available with the popular open-source database provider. I would bet that most of those people don't even take the time to select a storage-engine and just accept the database default. Those of you who are left probably heard from a friend who saw something online that said one of the two is better than the other. Those of you who are left will still probably learn a thing or two here :)
  • 14
  • 2
  • 5596
  • 1

Comments

Add your comment
User 108814 avatar

aj16780 replied ago:

-2 votes Vote down Vote up Reply

> REMEMBER! It's OK to mix table types in the same database! In fact it's recommended and frequently required.

Not a good idea.

User 212108 avatar

legendx replied ago:

1 votes Vote down Vote up Reply

From MySQL manual:

You can combine transaction-safe and non-transaction-safe tables in the same statements to get the best of both worlds. However, although MySQL supports several transaction-safe storage engines, for best results, you should not mix different storage engines within a transaction with autocommit disabled.

Like i said in the article.. you need both if you're going to have a log table and an articles table with full-text searching.. just be careful when you're running a join query on both which in the real world happens once in a blue moon. Look around the web and you fill find tons of sites who utilize both tables and are able to enjoy both benefits.

User 189831 avatar

karmazilla replied ago:

1 votes Vote down Vote up Reply

> Not a good idea.

Hmm... why not?

User 108814 avatar

aj16780 replied ago:

0 votes Vote down Vote up Reply

I think the original author understood the problems with transactional (isolation levels etc) and constraint handling differences between myisam and innodb, but didn't warn about them in the article. Personally I think innodb should be always preferred over myisam and indexing is better done with an indexing server.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.