943,702 Members | Top Members by Rank

Ad:
  • MySQL Discussion Thread
  • Marked Solved
  • Views: 154076
  • MySQL RSS
You are currently viewing page 3 of this multi-page discussion thread; Jump to the first page
Feb 20th, 2008
0

Re: MyISAM vs InnoDB

Hi

I have been researching the differences (implementation as well as performance) between MyISAM and InnoDB for sometime. It looks like we need to hit a subtle balance between both of them,

In particular, it was very disappointing for me to read that Dani had to revert back from InnoDB.

The right way to use the mix, IMO, is to use a master-slave configuration for database replication. One should use InnoDB on the master to store tables for fast concurrent inserts and updates. The same table should be replicated on the slave using MyISAM for fast reads.

Also, when using InnoDB, don't forget to play around with the innodb_buffer_pool and innodb_thread_concurrency parameters. They seriously impact the performance you get out of InnoDB setup.

One last point to note here is that InnoBase has been acquired by Oracle already. So, future bug fixes and improvements may not be free.

Hope this helps!!
Reputation Points: 10
Solved Threads: 1
Newbie Poster
chandranshu is offline Offline
1 posts
since Feb 2008
Mar 3rd, 2008
0

Re: MyISAM vs InnoDB

Quote ...
One last point to note here is that InnoBase has been acquired by Oracle already. So, future bug fixes and improvements may not be free.
I hope they are not going to do so. Read the Oracle statement.

BTW, SUN has acquired MySQL...
Reputation Points: 29
Solved Threads: 47
Posting Whiz
mwasif is offline Offline
312 posts
since Dec 2007
Oct 23rd, 2008
0

Re: MyISAM vs InnoDB

this post is very helpful.thanks
Reputation Points: 10
Solved Threads: 1
Newbie Poster
lizzeelike is offline Offline
2 posts
since Aug 2008
Jan 18th, 2009
0

Re: MyISAM vs InnoDB

I've been asking myself this same question but aren't you forgetting some important differences between Inno and MyIsam here?

As far as I know MyIsam does NOT support Foreign keys and InnoDB does. Which makes a huge difference in your coding / db design.

That is the main reason I'm struggling with the question, to switch or not to switch, as when I'm going to InnoDB I should redesign my database (just partially but still some extra commands are necessary to define the FK's) and more work is changing the (php / sql) code (where you don't have to do FK relations manually anymore)
Reputation Points: 10
Solved Threads: 1
Newbie Poster
salami1_1 is offline Offline
1 posts
since Sep 2005
Jan 28th, 2009
0

Re: MyISAM vs InnoDB

this thread was very helpful thanks a lot dani
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Sword is offline Offline
11 posts
since Jul 2005
Jan 7th, 2010
0
Re: MyISAM vs InnoDB
Click to Expand / Collapse  Quote originally posted by cscgal ...
Here is some information about this: http://dev.mysql.com/doc/refman/5.0/...e-locking.html
There is another very good reason to use INNODB: concurrency. If you are going o have multiple users updating (different rows of) the same table concurrently, you really need the row locking functionality of INNODB.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
markainsworth is offline Offline
1 posts
since Jan 2010
Jan 12th, 2010
0
Re: MyISAM vs InnoDB
Click to Expand / Collapse  Quote originally posted by cscgal ...
Here is some information about this: http://dev.mysql.com/doc/refman/5.0/...e-locking.html
I had really only ever seen the MyISAM engine in use but when I installed MySQL Workbench it defaults to the innodb engine and that led me to do the same research you did and I concluded exactly what you did:

MyISAM is faster but innodb is better for databases who have lots and lots of writes and I think the vast majority are as you describe daniweb to be... mostly reads.
Reputation Points: 12
Solved Threads: 8
Junior Poster
ppetree is offline Offline
157 posts
since Oct 2009
Mar 31st, 2010
0
Re: MyISAM vs InnoDB
Yep, the conclusion is:
if your table is mainly Read: MyISAM better because faster
if your table is mainly Write: InnoDB better because faster, especially for concurrency:
MyISAM or InnoDB?
Reputation Points: 10
Solved Threads: 1
Newbie Poster
bottomless is offline Offline
1 posts
since Mar 2010
Apr 6th, 2010
0

one other thing...

You can't do full text search with InnoDB, but you can search using more resourse heavy methods such as LIKE '% %'
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cardi777 is offline Offline
1 posts
since Apr 2010
Sep 8th, 2010
0
Re: MyISAM vs InnoDB
This is really nice read, but it has included only few points.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Indurajput is offline Offline
2 posts
since Sep 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MySQL Forum Timeline: which mysql server to download??
Next Thread in MySQL Forum Timeline: insert huge text file to mysql





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC