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

后端 未结 7 1725
自闭症患者
自闭症患者 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:45

    Well, if you have optimised the database and queries, I'd say that rather than chop up the data, the next step is to look at:

    a) the mysql configuration and make sure that it is making the most of the hardware

    b) look at the hardware. You don't say what hardware you are using. You may find that replication is an option in your case if you can buy a two or three servers to divide up the reads from the database (writes have to be done to a central server, but reads can be read from any number of slaves).

提交回复
热议问题