任务描述

1.原sql


SQL 执行次数 平均I_O 总I_O 逻辑写 逻辑读 CPU平均耗时 总CPU耗时_秒 优化建议
(@1 varchar(8000),@2 varchar(8000),@3 int,@4 tinyint,@5 int)UPDATE [RB_Procurement_Detail_SingleList_Detail] set [PrepareBuyTime] = @1,[PrepareBuyUserName] = @2,[PrepareBuyAdminId] = @3 WHERE [CustomerID]=@4 AND [ID]=@5 5680 7.6667 38245 615 37630 0 981

2.Erp系统对应位置

3.代码最后提交记录

需求描述

1.原sql

SQL 执行次数 平均I_O 总I_O 逻辑写 逻辑读 CPU平均耗时 总CPU耗时_秒 优化建议
(@1 varchar(8000),@2 varchar(8000),@3 int,@4 tinyint,@5 int)UPDATE [RB_Procurement_Detail_SingleList_Detail] set [PrepareBuyTime] = @1,[PrepareBuyUserName] = @2,[PrepareBuyAdminId] = @3 WHERE [CustomerID]=@4 AND [ID]=@5 5680 7.6667 38245 615 37630 0 981

2.Erp系统对应位置

3.代码最后提交记录

验收标准
暂无
历史记录  
  1. 2023-11-20 19:46:47, 由 何建宝 创建。
  2. 2023-11-22 18:33:15, 由 邹声全 启动。
    修改了 实际开始,旧值为 "0000-00-00 00:00:00",新值为 "2023-11-22 18:33:14"。
    修改了 任务状态,旧值为 "wait",新值为 "doing"。
  3. 2023-11-23 15:06:34, 由 邹声全 编辑。
    修改了 任务描述,区别为:
    002-
    002+
    003- SQL
    003+ SQL
    004- 执行次数
    004+ 执行次数
    005- 平均I_O
    005+ 平均I_O
    006- 总I_O
    006+ 总I_O
    007- 逻辑写
    007+ 逻辑写
    008- 逻辑读
    008+ 逻辑读
    009- CPU平均耗时
    009+ CPU平均耗时
    010- 总CPU耗时_秒
    010+ 总CPU耗时_秒
    011- 优化建议
    011+ 优化建议
    012- (@1 varchar(8000),@2 varchar(8000),@3 int,@4 tinyint,@5 int)UPDATE [RB_Procurement_Detail_SingleList_Detail] set [PrepareBuyTime] = @1,[PrepareBuyUserName] = @2,[PrepareBuyAdminId] = @3 WHERE [CustomerID]=@4 AND [ID]=@5
    012+ (@1 varchar(8000),@2 varchar(8000),@3 int,@4 tinyint,@5 int)UPDATE [RB_Procurement_Detail_SingleList_Detail] set [PrepareBuyTime] = @1,[PrepareBuyUserName] = @2,[PrepareBuyAdminId] = @3 WHERE [CustomerID]=@4 AND [ID]=@5
    013- 5680
    013+ 5680
    014- 7.6667
    014+ 7.6667
    015- 38245
    015+ 38245
    016- 615
    016+ 615
    017- 37630
    017+ 37630
    018- 0
    018+ 0
    019- 981
    019+ 981
    020-
    020+
    021- 2.Erp系统对应位置
    021+ 2.Erp系统对应位置
    022- <img src="/zentao/file-read-313814.png" alt="" />
    022+
    023- <img src="/zentao/file-read-313815.png" alt="" />
    023+
    025- <img src="/zentao/file-read-313816.png" alt="" />
    025+
    002- <p>
    002+ <p><br /></p>
    003- </p><table cellspacing="0" cellpadding="0" border="0" class="ke-zeroborder"><tbody><tr><td class="s-3" style="font-weight:bold;color:#000000;font-size:10pt;font-family:Arial;vertical-align:bottom;">SQL</td>
    003+ <table cellspacing="0" cellpadding="0" border="0" class="ke-zeroborder"><tbody><tr><td class="s-3" style="font-weight:bold;color:#000000;font-size:10pt;font-family:Arial;vertical-align:bottom;">SQL</td>
    004- <td class="s-3" style="font-weight:bold;color:#000000;font-size:10pt;font-family:Arial;vertical-align:bottom;">执行次数</td>
    004+ <td class="s-3" style="font-weight:bold;color:#000000;font-size:10pt;font-family:Arial;vertical-align:bottom;">执行次数</td>
    005- <td class="s-81" style="font-weight:bold;">平均I_O</td>
    005+ <td class="s-81" style="font-weight:bold;">平均I_O</td>
    006- <td class="s-81" style="font-weight:bold;">总I_O</td>
    006+ <td class="s-81" style="font-weight:bold;">总I_O</td>
    007- <td class="s-81" style="font-weight:bold;">逻辑写</td>
    007+ <td class="s-81" style="font-weight:bold;">逻辑写</td>
    008- <td class="s-81" style="font-weight:bold;">逻辑读</td>
    008+ <td class="s-81" style="font-weight:bold;">逻辑读</td>
    009- <td class="s-81" style="font-weight:bold;">CPU平均耗时</td>
    009+ <td class="s-81" style="font-weight:bold;">CPU平均耗时</td>
    010- <td class="s-81" style="font-weight:bold;">总CPU耗时_秒</td>
    010+ <td class="s-81" style="font-weight:bold;">总CPU耗时_秒</td>
    011- <td class="s-85" style="font-weight:bold;background-color:#92D04F;">优化建议</td>
    011+ <td class="s-85" style="font-weight:bold;background-color:#92D04F;">优化建议</td>
    012- </tr><tr><td class="s-87" style="color:#000000;font-size:10pt;font-family:Arial;background-color:#FE0300;vertical-align:bottom;">(@1 varchar(8000),@2 varchar(8000),@3 int,@4 tinyint,@5 int)UPDATE [RB_Procurement_Detail_SingleList_Detail] set [PrepareBuyTime] = @1,[PrepareBuyUserName] = @2,[PrepareBuyAdminId] = @3 WHERE [CustomerID]=@4 AND [ID]=@5</td>
    012+ </tr><tr><td class="s-87" style="color:#000000;font-size:10pt;font-family:Arial;background-color:#FE0300;vertical-align:bottom;">(@1 varchar(8000),@2 varchar(8000),@3 int,@4 tinyint,@5 int)UPDATE [RB_Procurement_Detail_SingleList_Detail] set [PrepareBuyTime] = @1,[PrepareBuyUserName] = @2,[PrepareBuyAdminId] = @3 WHERE [CustomerID]=@4 AND [ID]=@5</td>
    013- <td class="s-87" style="color:#000000;font-size:10pt;font-family:Arial;background-color:#FE0300;vertical-align:bottom;">5680</td>
    013+ <td class="s-87" style="color:#000000;font-size:10pt;font-family:Arial;background-color:#FE0300;vertical-align:bottom;">5680</td>
    014- <td class="s-84" style="background-color:#FE0300;">7.6667</td>
    014+ <td class="s-84" style="background-color:#FE0300;">7.6667</td>
    015- <td class="s-84" style="background-color:#FE0300;">38245</td>
    015+ <td class="s-84" style="background-color:#FE0300;">38245</td>
    016- <td class="s-84" style="background-color:#FE0300;">615</td>
    016+ <td class="s-84" style="background-color:#FE0300;">615</td>
    017- <td class="s-84" style="background-color:#FE0300;">37630</td>
    017+ <td class="s-84" style="background-color:#FE0300;">37630</td>
    018- <td class="s-84" style="background-color:#FE0300;">0</td>
    018+ <td class="s-84" style="background-color:#FE0300;">0</td>
    019- <td class="s-84" style="background-color:#FE0300;">981</td>
    019+ <td class="s-84" style="background-color:#FE0300;">981</td>
    020- <td class="s-84" style="background-color:#FE0300;"></td>
    020+ <td class="s-84" style="background-color:#FE0300;"></td>
    021- </tr></tbody></table><p>2.Erp系统对应位置</p>
    021+ </tr></tbody></table><p>2.Erp系统对应位置</p>
    022- <p><img src="/zentao/file-read-313814.png" alt="" /></p>
    022+ <p><img src="{313814.png}" alt="" /></p>
    023- <p><img src="/zentao/file-read-313815.png" alt="" /></p>
    023+ <p><img src="{313815.png}" alt="" /></p>
    025- <p><img src="/zentao/file-read-313816.png" alt="" /></p>
    025+ <p><img src="{313816.png}" alt="" /></p>



  4. 2023-11-23 15:10:08, 由 邹声全 编辑。
    修改了 任务描述,区别为:
    022- <img src="/zentao/file-read-313814.png" alt="" />
    022+
    023- <img src="/zentao/file-read-313815.png" alt="" />
    023+
    025- <img src="/zentao/file-read-313816.png" alt="" />
    025+
    022- <p><img src="/zentao/file-read-313814.png" alt="" /></p>
    022+ <p><img src="{313814.png}" alt="" /></p>
    023- <p><img src="/zentao/file-read-313815.png" alt="" /></p>
    023+ <p><img src="{313815.png}" alt="" /></p>
    025- <p><img src="/zentao/file-read-313816.png" alt="" /></p>
    025+ <p><img src="{313816.png}" alt="" /></p>

    经过和系统部以及相关开发人员的了解,目前暂时没有找到这个参数化的语句是在哪里调用的。。并且把采购组涉及的公共项目都找过了,没有找到相关sql


    和相关开发人员沟通了,暂时先把ERP的更新注释掉



  5. 2023-11-23 15:10:18, 由 邹声全 完成。
    修改了 总计消耗,旧值为 "0",新值为 "3"。
    修改了 指派给 ,旧值为 "zoushengquan",新值为 "hejianbao"。
    修改了 实际完成,旧值为 "",新值为 "2023-11-23 15:10:11"。
    修改了 任务状态,旧值为 "doing",新值为 "done"。
    修改了 预计剩余,旧值为 "4",新值为 "0"。
    修改了 由谁完成,旧值为 "",新值为 "zoushengquan"。
  6. 2023-11-24 10:32:05, 由 周杰 关闭。
    修改了 任务状态,旧值为 "done",新值为 "closed"。
    修改了 指派给 ,旧值为 "hejianbao",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "zhoujie"。
    修改了 关闭时间,旧值为 "0000-00-00 00:00:00",新值为 "2023-11-24 10:32:05"。
    修改了 关闭原因,旧值为 "",新值为 "done"。
所属迭代 技术研发中心 11月运维事项(2023年)
所属模块 技术中心-需求池  系统运维   性能优化
相关需求 [RB_Procurement_Detail_SingleList_Detail] 优化
指派给 Closed 于 2023-11-24 10:32:05
任务类型 后端
任务标签 初始
开发组 敏捷开发组
任务状态 已关闭
进度 100%
优先级 P3
关键词
抄送给
由谁创建 何建宝 于 2023-11-20 19:46:47
由谁完成 邹声全 于 2023-11-23 15:10:11
由谁取消 暂无
由谁关闭 周杰 于 2023-11-24 10:32:05
关闭原因 已完成
最后编辑 周杰 于 2023-11-24 10:32:05
团队 最初预计 总计消耗 预计剩余
工时信息
最初预计 4工时
总计消耗 3工时
预计剩余 0工时
预计开始 2023-11-23
实际开始 2023-11-22
截止日期 2023-11-23