Should I use MyISAM or InnoDB Tables for my MySQL Database?

后端 未结 4 2161
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 01:34

I have the following two tables in my database (the indexing is not complete as it will be based on which engine I use):

Table 1:



        
4条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 02:24

    I would like to add something that people may benefit from: I've just created a InnoDB table (leaving everything as the default, except changing the collation to Unicode), and populated it with about 300,000 records (rows).

    Queries like SELECT COUNT(id) FROM table - would hang until giving an error message, not returning a result;

    I've cloned the table with the data into a new MyISAM table - and that same query, along with other large SELECTqueries - would return fast, and everything worked ok.

提交回复
热议问题