I've hit the DB performance bottleneck, where now?

后端 未结 7 1710
自闭症患者
自闭症患者 2021-02-15 18:37

I have some queries that are taking too long (300ms) now that the DB has grown to a few million records. Luckily for me the queries don\'t need to look at the majority of this d

7条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-15 18:49

    Instead of creating a separate table for latest results, think about table partitioning. MySQL has this feature built in since version 5.1


    Just to make it clear: I am not saying this is THE solution for your issues. Just one thing you can try

提交回复
热议问题