mysqlupdatequery endshow profile
表2000行, id主键,98%update正常,突然有一条很慢, 使用show profile查询的结果是下面这个状态占用时间比较长,
{
"status": "query end",
"duration": "1.751142",
"cpu_user": "0.008999",
"cpu_system": "0.003999",
"context_voluntary": "98",
"context_involuntary": "0",
"block_ops_in": "8",
"block_ops_out": "32",
"messages_sent": "0",
"messages_received": "0",
"page_faults_major": "0",
"page_faults_minor": "0",
"swaps": "0",
"source_function": "mysql_execute_command",
"source_file": "sql_parse.cc",
"source_line": "4465"
},
请问这个 "status": "query end", 状态是什么状态, 这个状态下在执行什么事情?
"context_voluntary": "98", "block_ops_in": "8", "block_ops_out": "32" 这些字段的含义是什么?
大多数时候这些字段都是0, 为什么突然一条这几个字段很高?
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号