MySQL slow query - “Waiting for query cache lock”

后端 未结 2 1618
小鲜肉
小鲜肉 2020-12-14 02:35

I am running a simple query on a simple table on the same machine as the server running 5.5. It is taking 22sec to return ~7000 rows from a 20 million row table. Upon prof

2条回答
  •  隐瞒了意图╮
    2020-12-14 02:56

    This is a known problem with MySQL. It's really well described here:

    https://web.archive.org/web/20160129162137/http://www.psce.com/blog/kb/how-query-cache-can-cause-performance-problems/

    Query cache can help you a lot but at the same time it can become a bottleneck.

提交回复
热议问题