Skip to content
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慢查询脚本问题 #2234

Closed
hjjoe1213123 opened this issue Feb 2, 2021 · 1 comment
Closed

SQL慢查询脚本问题 #2234

hjjoe1213123 opened this issue Feb 2, 2021 · 1 comment

Comments

@hjjoe1213123
Copy link

Please answer some questions before submitting your issue. Thanks!

Which version of XXL-JOB do you using?

2.2.0

Expected behavior

不应该有长达10分钟的慢查询SQL

Actual behavior

长达10分钟的慢查询SQL

Steps to reproduce the behavior

SELECT t.id FROM xxl_job_log AS t WHERE t.trigger_code = 200 and t.handle_code = 0 and t.trigger_time <= '2021-02-02 14:33:20.22' and t.executor_address not in ( SELECT t2.registry_value FROM xxl_job_registry AS t2 )

Other information

luckkyboy pushed a commit to luckkyboy/xxl-job that referenced this issue Feb 7, 2021
xuxueli added a commit that referenced this issue Feb 9, 2021
@xuxueli
Copy link
Owner

xuxueli commented Feb 9, 2021

你好,感谢反馈,相关PR已经合并至master分之,将会近期发布。

针对日志表大表问题,建议开启调度中心日志自动清理功能,定期处理过期日志数据。

@xuxueli xuxueli closed this as completed Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants