修改了
开发组 ,旧值为 "",新值为 "1"。
修改了
预计开始,旧值为 "0000-00-00",新值为 "2023-12-26"。
修改了
截止日期,旧值为 "0000-00-00",新值为 "2023-12-26"。
修改了
任务名称,区别为:
001- RB_WareHouse_Inventory_Transfer_Log优化
001+ RB_WareHouse_Inventory_Transfer_Log优化 ---测试执行
001- RB_WareHouse_Inventory_Transfer_Log优化
001+ RB_WareHouse_Inventory_Transfer_Log优化 ---测试执行
修改了
任务描述,区别为:
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- (@CustomerID int,@SKU nvarchar(8),@EndShipTime datetime)SELECT TOP 1 TaxRefundFee FROM RB_WareHouse_Inventory_Transfer_Log tl(NOLOCK) INNER JOIN RB_Warehouse wh(NOLOCK) ON tl.CustomerID=wh.CustomerID AND tl.FromWareHouseID=wh.ID WHERE tl.CustomerID=@CustomerID AND tl.ShipTime>=DATEADD(DAY,-DAY(GETDATE()),DATEADD(YEAR,-1,GETDATE())) AND tl.ShipTime<@EndShipTime AND tl.SKU=@SKU AND wh.WareHouseName LIKE '%退税%' AND OrderCode NOT LIKE 'P%' AND OrderCode NOT LIKE '%X' AND TaxRefundFee>0 AND tl.BaseID=0 ORDER BY tl.ShipTime DESC
012+ (@CustomerID int,@SKU nvarchar(8),@EndShipTime datetime)SELECT TOP 1 TaxRefundFee FROM RB_WareHouse_Inventory_Transfer_Log tl(NOLOCK) INNER JOIN RB_Warehouse wh(NOLOCK) ON tl.CustomerID=wh.CustomerID AND tl.FromWareHouseID=wh.ID WHERE tl.CustomerID=@CustomerID AND tl.ShipTime>=DATEADD(DAY,-DAY(GETDATE()),DATEADD(YEAR,-1,GETDATE())) AND tl.ShipTime<@EndShipTime AND tl.SKU=@SKU AND wh.WareHouseName LIKE '%退税%' AND OrderCode NOT LIKE 'P%' AND OrderCode NOT LIKE '%X' AND TaxRefundFee>0 AND tl.BaseID=0 ORDER BY tl.ShipTime DESC
013- 564
013+ 564
014- 331
014+ 331
015- 187164
015+ 187164
016- 0
016+ 0
017- 187164
017+ 187164
018- 1
018+ 1
019- 828
019+ 828
020- 包含LIKE 语句消耗性能大,建议整改
020+ 包含LIKE 语句消耗性能大,建议整改
021-
021+
023- <img src="/zentao/file-read-316582.png" alt="" />
023+
026- <img src="/zentao/file-read-316583.png" alt="" />
026+
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-83" style="color:#000000;font-size:10pt;font-family:Arial;background-color:#FCC102;vertical-align:bottom;">(@CustomerID int,@SKU nvarchar(8),@EndShipTime datetime)SELECT TOP 1 TaxRefundFee FROM RB_WareHouse_Inventory_Transfer_Log tl(NOLOCK) INNER JOIN RB_Warehouse wh(NOLOCK) ON tl.CustomerID=wh.CustomerID AND tl.FromWareHouseID=wh.ID WHERE tl.CustomerID=@CustomerID AND tl.ShipTime>=DATEADD(DAY,-DAY(GETDATE()),DATEADD(YEAR,-1,GETDATE())) AND tl.ShipTime<@EndShipTime AND tl.SKU=@SKU AND wh.WareHouseName LIKE '%退税%' AND OrderCode NOT LIKE 'P%' AND OrderCode NOT LIKE '%X' AND TaxRefundFee>0 AND tl.BaseID=0 ORDER BY tl.ShipTime DESC</td>
012+ </tr><tr><td class="s-83" style="color:#000000;font-size:10pt;font-family:Arial;background-color:#FCC102;vertical-align:bottom;">(@CustomerID int,@SKU nvarchar(8),@EndShipTime datetime)SELECT TOP 1 TaxRefundFee FROM RB_WareHouse_Inventory_Transfer_Log tl(NOLOCK) INNER JOIN RB_Warehouse wh(NOLOCK) ON tl.CustomerID=wh.CustomerID AND tl.FromWareHouseID=wh.ID WHERE tl.CustomerID=@CustomerID AND tl.ShipTime>=DATEADD(DAY,-DAY(GETDATE()),DATEADD(YEAR,-1,GETDATE())) AND tl.ShipTime<@EndShipTime AND tl.SKU=@SKU AND wh.WareHouseName LIKE '%退税%' AND OrderCode NOT LIKE 'P%' AND OrderCode NOT LIKE '%X' AND TaxRefundFee>0 AND tl.BaseID=0 ORDER BY tl.ShipTime DESC</td>
013- <td class="s-83" style="color:#000000;font-size:10pt;font-family:Arial;background-color:#FCC102;vertical-align:bottom;">564</td>
013+ <td class="s-83" style="color:#000000;font-size:10pt;font-family:Arial;background-color:#FCC102;vertical-align:bottom;">564</td>
014- <td class="s-80" style="background-color:#FCC102;">331</td>
014+ <td class="s-80" style="background-color:#FCC102;">331</td>
015- <td class="s-80" style="background-color:#FCC102;">187164</td>
015+ <td class="s-80" style="background-color:#FCC102;">187164</td>
016- <td class="s-80" style="background-color:#FCC102;">0</td>
016+ <td class="s-80" style="background-color:#FCC102;">0</td>
017- <td class="s-80" style="background-color:#FCC102;">187164</td>
017+ <td class="s-80" style="background-color:#FCC102;">187164</td>
018- <td class="s-80" style="background-color:#FCC102;">1</td>
018+ <td class="s-80" style="background-color:#FCC102;">1</td>
019- <td class="s-80" style="background-color:#FCC102;">828</td>
019+ <td class="s-80" style="background-color:#FCC102;">828</td>
020- <td class="s-80" style="background-color:#FCC102;">包含LIKE 语句消耗性能大,建议整改</td>
020+ <td class="s-80" style="background-color:#FCC102;">包含LIKE 语句消耗性能大,建议整改</td>
021- </tr></tbody></table><p><br /></p>
021+ </tr></tbody></table><p><br /></p>
023- <p><img src="/zentao/file-read-316582.png" alt="" /></p>
023+ <p><img src="{316582.png}" alt="" /></p>
026- <p><img src="/zentao/file-read-316583.png" alt="" /></p>
026+ <p><img src="{316583.png}" alt="" /></p>