Chinaunix首页 | 论坛 | 博客
  • 博客访问: 80835
  • 博文数量: 29
  • 博客积分: 2040
  • 博客等级: 大尉
  • 技术积分: 305
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-21 22:25
文章分类
文章存档

2011年(1)

2010年(13)

2009年(11)

2008年(4)

我的朋友

分类: Mysql/postgreSQL

2010-05-24 11:58:03

InnoDB supports foreign key, the cascaded on delete and update is very helpful, recommended for environment require strong data integrity and validity. But the trade-off is the data retrieval speed for SELECT statement.

MyISAM is good for deployment and fast in data retrieval, i think it is critical for forum usage which is mostly data read.

There is no best solution for all cases, that's why InnoDB and MyISAM co-exist, choose the one suits your needs. If your application is relying on data integrity and critical on read speed at the same time, try MySQL clustering, use InnoDB as master db for INSERT/UPDATE/DELETE, use MyISAM as slave db for SELECT, data updated in master will be trigger and propagate to slave db for synchronization.
阅读(814) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~