query extremely slow after migration to mysql 5.7

后端 未结 3 843
执笔经年
执笔经年 2021-01-02 13:14

I have a MySQL database with InnoDB tables summing up over 10 ten GB of data that I want to migrate from MySQL 5.5 to MySQL 5.7. And I have a query that looks a bit like:

3条回答
  •  独厮守ぢ
    2021-01-02 13:47

    Building and maintaining a "Summary Table" would make this query run much faster than even 1 second.

    Such a table would probably include shop_id, date, and some count.

    More on summary tables.

提交回复
热议问题