-
最近从1.8.1升级到1.9.0后,发现sql上线工单返回确认结果比较慢,有的慢到3分钟左右才返回执行成功,实际sql执行不到1s。 |
Beta Was this translation helpful? Give feedback.
Answered by
czxin788
Aug 29, 2022
Replies: 3 comments
-
1、我在archery mysql慢日志中,找到了慢sql:
我觉得是这个表数据量太大导致慢,工单确认慢的; 2、于是我请空该表数据,然后我再观察一下,看是否还会发生偶尔变的问题; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
czxin788
-
Beta Was this translation helpful? Give feedback.
0 replies
-
几张表都可以考虑定期归档,query_log可以加用户索引,非管理员看到的数据不会太多,count没有太好的解决办法,可以升8.0 开启并行查询 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1、我在archery mysql慢日志中,找到了慢sql: