1.原sql
| SQL | 执行次数 | 平均I_O | 总I_O | 逻辑写 | 逻辑读 | CPU平均耗时 | 总CPU耗时_秒 | 优化建议 |
| (@CustomerID int,@Country nvarchar(4000),@Skus nvarchar(4000))select [ID],[Country],[CustomerID],[SKU],[BrowseNodeName],[BrowsePathByID],[ParentBrowsePathByID],[IsPlatformShelf],[IsSystemCollect],[IsManualChoose],[IsCompetitiveCollect],[IsDelete],[AddTime],[UpdateTime],[IsMain] from [E_Product_Amazon_BrowseTree] (nolock) where [CustomerID] = @CustomerID AND IsDelete=0 and IsMain=1 AND [SKU] in(SELECT item FROM Charsplitforin(@Skus, ',')) AND Country = @Country | 24360 | 69.6667 | 1698623 | 9629 | 1688994 | 10.6667 | 259555 | 该表原为共享库的表,迁移不应作为大业务关联 |

3.代码最后提交记录

优化了下sql
这个sku类目调用量没法下降