Skip to content

sql上线的工单确认结果慢 1.9.0版本 #1804

Answered by czxin788
czxin788 asked this question in Q&A
Discussion options

You must be logged in to vote

1、我在archery mysql慢日志中,找到了慢sql:

# Query_time: 96.595427  Lock_time: 0.000137 Rows_sent: 1  Rows_examined: 32579
SET timestamp=1661744732;
SELECT `django_q_task`.`id`, `django_q_task`.`name`, `django_q_task`.`func`, `django_q_task`.`hook`, `django_q_task`.`args`, `django_q_task`.`kwargs`, `django_q_task`.`result`, `django_q_task`.`group`, `django_q_task`.`started`, `django_q_task`.`stopped`, `django_q_task`.`success`, `django_q_task`.`attempt_count` FROM `django_q_task` WHERE `django_q_task`.`success` ORDER BY `django_q_task`.`stopped` ASC LIMIT 1 FOR UPDATE;
select count(*) from django_q_task;
+----------+
| count(*) |
+----------+
|    32579 |
+----------+
1 row in set (0.01 sec)
desc S…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by czxin788
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants