SQL Query Stuck in Statistics State

前端 未结 2 673
野的像风
野的像风 2021-01-31 20:24

I\'ve been troubleshooting this complex query today, thinking it was a performance issue. It appears that the query is getting stuck into the \'Statistics\' state. It is current

2条回答
  •  遥遥无期
    2021-01-31 20:56

    I had the same issue on a Centos server 4 cores and 180GB ram. A simple query was taking forever to run and stuck on statistics state just like what you have explained. I ran OPTIMIZE TABLE on the tables it was querying and like 5 minutes later problem was solved. However, I never found out if it really solved the issue or not.

    Just a suggestion.

提交回复
热议问题