哪种数据库存储引擎最适合实施博客?
可能的重复:
MySql:MyISAM 与 Inno DB!
我正在使用 MySql 在 php 中实现一个博客。
并非所有引擎都支持特殊字段类型,例如我需要经常使用的 BLOB(二进制大对象)或 TEXT 类型。
此外,我非常需要使用外键机制来管理对帖子的评论以及不同可能的帖子档案。
就效率和功能而言,最好使用哪种数据库存储引擎(MyISAM、InnoDB...)?
Possible Duplicate:
MySql: MyISAM vs. Inno DB!
I am implementing a blog in php using MySql.
Not all engines support special field types, as BLOB (binary large object) or TEXT types, which I need to use a lot.
Furthermore I will heavily need to manage comments to posts, and different possible archives of posts, using foreign key mechanism.
Which database storage engine (MyISAM, InnoDB,..) is it best to use in terms of efficiency and functionalities?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我推荐 InnoDB 而不是 MyISAM,因为它具有更好的事务属性。 Inno在写入方面会慢一点,但是你的数据更安全,而且并不是说你要每分钟写入5000条记录。
一些软件(例如 MediaWiki 和我认为 WordPress 也是如此)混合了这些类型。他们对所有关系和元数据使用 Inno,并为内容字段保留一个单独的表,这些字段存储在 MyISAM 表中,因为它允许使用 FULLTEXT 索引。但这也是一种解决方法。最好一直使用 Inno。如果您需要高级搜索,请使用单独的搜索引擎,例如 Sphinx。
I'd recommend InnoDB over MyISAM, because of better transactional properties. Inno would be a little slower when it comes to writing, but your data is safer, and it's not that you're gonna write 5000 records a minute.
Some software (like MediaWiki and I think WordPress too) mix up the types. They use Inno for all relations and meta data, and keep a separate table for content fields, which are stored in a MyISAM table, because it allows using FULLTEXT indexes. But this is a workaround as well. Better use Inno all the time. If you need advanced searching, use a separate seach engine like Sphinx.