MyISAM and InnoDB tables in one database

后端 未结 2 452
南方客
南方客 2021-02-03 12:53

I have a database with about 30 tables and 5 tables of them is write-intensive.

I\'m considering

  1. Convert 5 write-intensive tables to use InnoDB engine a

2条回答
  •  我在风中等你
    2021-02-03 13:30

    pros and cons for each.

    for (1) pros: less disk space usage, myisam much faster for read-heavy access patterns

    cons: memory must be shared between the innodb buffers and myisam key buffers. innodb tables are about 4x bigger than their myisam counterparts. programmatic code must be adapted for deadlock handling.

    just remember innodb will also lock if you're changing an indexed column or primary key.

提交回复
热议问题