Are there any pitfalls / things you need to know when changing from MyISAM to InnoDB

后端 未结 6 1049
遇见更好的自我
遇见更好的自我 2021-02-01 11:02

One of my projects use the MyISAM engine in MySQL, but I\'m considering changing it to InnoDB as I need transaction support here and there.

  • What should I look at o
6条回答
  •  生来不讨喜
    2021-02-01 11:25

    If you are intending to use InnoDB as a way to get concurrent queries, then you will want to set innodb_file_trx_commit=1 so you get some performance back. OTOH, if you were looking to re-code your application to be transaction aware, then deciding this setting will be part of the general performance review needed of the InnoDB settings.

    The other major thing to watch out for is that InnoDB does not support FullText indices, nor INSERT DELAYED. But then, MyISAM doesn't support referential integrity. :-)

    However, you can move over only the tables you need transaction aware. I've done this. Small tables (up to several thousand rows) can often be changed on-the-fly, incidentally.

提交回复
热议问题