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

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

    Considering a design change like this is not a good sign - I bet you still have plenty of performance to squeeze out using EXPLAIN, adjusting db variables and improving the indexes and queries. But you're probably past the point where "trying stuff" works very well. It's an opportunity to learn how to interpret the analyses and logs, and use what you learn for specific improvements to indexes and queries.

    If your suggestion were a good one, you should be able to tell us why already. And note that this is a popular pessimization--

    What is the most ridiculous pessimization you've seen?

提交回复
热议问题