简体   繁体   English

MySQL:使用InnoDB引擎拥有9个表是绝对正常的,但是决定使用MYISAM保留1个表是正常的吗?

[英]MySQL: Is it absolutely normal to have 9 tables with InnoDB engine, but decide to keep 1 table with MYISAM one?

I switched all, but one tables to InnoDB engine from MyISAM. 我将所有表从MyISAM切换到了InnoDB引擎,但其中一个表已切换。 What about the last logs table? 那最后一个日志表呢? You INSERT in there but never SELECT from there (as far as I know today, MyISAM is better, than InnoDB in this case). 您可以在其中插入,但不能从那里进行选择(据我所知,在这种情况下,MyISAM比InnoDB更好)。

Should I switch it to InnoDB engine as well as it's the last unswitched table? 我应该将它切换到InnoDB引擎,还是最后一个未切换的表? Or, keeping 1 table among many tables with a different engine is absolutely normal? 或者,在具有不同引擎的多个表中保留1个表绝对是正常的吗?

Yes, it's normal to keep a few tables in MyISAM engine, especially for two cases: 是的,在MyISAM引擎中保留一些表是正常的,尤其是在两种情况下:

  • Full Text search 全文搜索

  • Spatial indexes (meaning: If you want to search for Latitudes/Longitudes and other spatial queries, fast) 空间索引(意味着:如果要搜索“纬度/经度”和其他空间查询,速度很快)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM