V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
Livid
267.72D
571.85D
V2EX  ›  MySQL

MySQL 的最新 Community Edition 里,InnoDB 成默认的了

  •  
  •   Livid ·
    PRO
    · May 24, 2011 · 5737 views
    This topic created in 5456 days ago, the information mentioned may be changed or developed.
    关于何时选择 InnoDB 何时选择 MyISAM,大家的指导原则是什么呢?
    5 replies    1970-01-01 08:00:00 +08:00
    lzyy
        1
    lzyy  
       May 24, 2011
    MyISAM:
    写入/更新时锁表
    索引长度不能超过1000

    Innodb:
    写入/更新时锁行
    ACID
    支持外键
    可能会产生死锁
    崩溃后自动恢复能力
    主键索引查询很快
    占用空间比较大(存储了两次主键索引)
    使用辅助索引时会稍微慢一点?

    Innodb用好了,应该会比MyISAM强不少,不过这需要不断地实践和总结
    est
        2
    est  
       May 24, 2011
    xtradb无压力
    Livid
        3
    Livid  
    MOD
    OP
    PRO
       May 24, 2011
    @est 多谢。又知道了一个好东西。

    http://www.percona.com/software/percona-server/users/

    不过貌似要在 Mac OS X 上用这个东西有点小麻烦。
    napoleonu
        4
    napoleonu  
       May 24, 2011
    没人用MyISAM了。
    fengluo
        5
    fengluo  
       May 24, 2011
    Innodb支持事务操作,对企业级开发很有用
    MyISAM查询读取速度更快些,对写入要求不高的应用比较适用。
    Wordpress这类小型建站系统用的是MyISAM
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2512 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 06:16 · PVG 14:16 · LAX 23:16 · JFK 02:16
    ♥ Do have faith in what you're doing.