mysql slow on first query, then fast for related queries

后端 未结 6 795
天涯浪人
天涯浪人 2020-12-29 07:12

I have been struggling with a problem that only happens when the database has been idle for a period of time for the data queried. The first query will be extremely slow, o

6条回答
  •  不知归路
    2020-12-29 07:47

    Is anything else running on your mysql server? My thought is that maybe after the first query, your table is still cached in memory. Once it's idle, another process is causing it to be de-cached. Just a guess though.

    How much memory do you have any what else is running?

提交回复
热议问题