Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't agree. MyISAM tables are easy to trash, and the table locking on update can bite you. There's no real disadvantage to using InnoDB other than having to learn to tune it a litte bit, and your data will be much safer.


Define 'easy to trash'. I've been using MyISAM without problems for years now.


MyISAM is like the ext2 filesystem. You crash and you end up spending a long time doing an fsck, where you have to verify the consistency by walking all the data structures. InnoDB is more like ext3, where you can make things consistent by replaying the changes in the journal. Doing repair on a large MyISAM table can take hours and hours.


I'm curious about this too -- I've used MyISAM for many projects without a problem.


The two ways I've experienced:

1. Yank power cord while db writes are happening.

2. Grow the tables over a couple of GB in size.


The additional storage cost of InnoDB can be quite significant if you have a lot of data. We have about 4 billion rows in MyISAM, we simply wouldn't have space to do that with InnoDB.

Hopefully compressed tables will improve matters.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: