-
-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
监控SQL慢 #3593
Comments
@LinWanCen 不用改代码,直接增加联合索引 |
我们试过不管用,于是根据数据只有200、500、0的情况优化了SQL |
对我们是有效,慢SQL瞬间没了。
|
我们正在分析为什么同样的代码只有一套环境出现了有个任务没用返回执行结果的情况,其他环境都有,看完客户端代码应该没问题,可能接受端更新表哪里出问题了。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/xuxueli/xxl-job/blob/39b92f9db608753650f2285bf70b0279800a560c/xxl-job-admin/src/main/resources/mybatis-mapper/XxlJobLogMapper.xml#L230C1-L240C11
这个SQL在我们自动化部署环境平均执行时间16秒,最高执行时间32秒,看代码每10秒一次,
建议添加组合索引,优化 SQL 以便命中索引:
The text was updated successfully, but these errors were encountered: