美文网首页
InnoDB vs MyISAM

InnoDB vs MyISAM

作者: 好小葱1 | 来源:发表于2018-11-19 21:51 被阅读13次

    First major difference I see is that InnoDB implements row-level lock while MyISAM can do only a table-level lock. You will find better crash recovery in InnoDB. However, it doesn't have FULLTEXT search indexes until v5.6, as does MyISAM. InnoDB also implements transactions, foreign keys and relationship constraints while MyISAM does not.

    The list can go a bit further. Yet, they both have their unique advantages in their favor and disadvantages against each other. Each of them is more suitable in some scenarios than the other.

    • InnoDB has row-level locking, MyISAM can only do full table-level locking.
    • InnoDB has better crash recovery.
    • MyISAM has FULLTEXT search indexes, InnoDB did not until MySQL 5.6 (Feb 2013).
    • InnoDB implements transactions, foreign keys and relationship constraints, MyISAM does not.

    相关文章

      网友评论

          本文标题:InnoDB vs MyISAM

          本文链接:https://www.haomeiwen.com/subject/yylzfqtx.html