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

后端 未结 7 1724
自闭症患者
自闭症患者 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 19:10

    Searching in the last 100,000 records should be terribly fast, you definitely have problems with the indexes. Use EXPLAIN and fix it.

提交回复
热议问题