gpt4 book ai didi

mysql 探查器 "Sending data"

转载 作者:可可西里 更新时间:2023-11-01 06:36:32 25 4
gpt4 key购买 nike

有没有对这些状态的解释?

http://dev.mysql.com/tech-resources/articles/using-new-query-profiler.html

我的具体问题是关于这个查询:

select count(*)
from 135_5m.record_updates u, 135_5m.records r
where r.record_id = u.record_id and
(u.date_updated > null or null is null) and
u.date_updated <= '2011-01-03';

它返回一个数字 - 4053904。那么为什么大部分时间都花在“发送数据”上呢?只是名字不好吗? “发送数据”一定不仅仅是发送数据吗?

+--------------------------------+-----------+-------+
| Status | Duration | Swaps |
+--------------------------------+-----------+-------+
| starting | 0.000224 | 0 |
| checking query cache for query | 0.000188 | 0 |
| checking permissions | 0.000012 | 0 |
| checking permissions | 0.000017 | 0 |
| Opening tables | 0.000036 | 0 |
| System lock | 0.000015 | 0 |
| Table lock | 0.000067 | 0 |
| init | 0.000105 | 0 |
| optimizing | 0.000052 | 0 |
| statistics | 0.000254 | 0 |
| preparing | 0.000061 | 0 |
| executing | 0.000017 | 0 |
| Sending data | 32.079549 | 0 |
| end | 0.000036 | 0 |
| query end | 0.000012 | 0 |
| freeing items | 0.000089 | 0 |
| storing result in query cache | 0.000022 | 0 |
| logging slow query | 0.000008 | 0 |
| logging slow query | 0.000008 | 0 |
| cleaning up | 0.000011 | 0 |
+--------------------------------+-----------+-------+

最佳答案

http://dev.mysql.com/doc/refman/5.0/en/general-thread-states.html

正在执行意味着线程已经开始执行,发送数据显然涵盖了行的处理和将计数发送回客户端。

关于mysql 探查器 "Sending data",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3638624/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com