Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
mysql档案器“;“发送数据”;_Mysql - Fatal编程技术网

mysql档案器“;“发送数据”;

mysql档案器“;“发送数据”;,mysql,Mysql,有关于这些状态的解释吗 我的具体问题是关于这个问题: 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'; 执行意味着线程已经开始执行,发送数据显然包括对行的处理和将计

有关于这些状态的解释吗

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

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';


执行意味着线程已经开始执行,发送数据显然包括对行的处理和将计数发送回客户端。

在向客户端发送数据之前,mysql需要读取数据,读取数据的阶段可能需要“发送数据”的大部分时间

主题外,但此位的用途是什么?日期更新为null或null为null?这肯定总是真的吗?查询最初是java代码中的PreparedStation。我换了新的?在我的代码中使用实际值来测试性能。
+--------------------------------+-----------+-------+
| 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 |
+--------------------------------+-----------+-------+