小编Mer*_*uda的帖子

我怎样才能使这个执行计划更有效率?

我已经计算出所有隐式转换,但我仍然在计划中看到它的提及。我已附上该计划,任何建议都会有所帮助。

select cardholder_index, sum(value) as [RxCost] 
into #rxCosts 
from RiskPredictionStatistics with (nolock) where model_name = 'prescription_cost_12_months'
 and model_set_name = 'rx_updated' and run_id in (select value from #runIds) 
 and exists (select 1 from StringContainsHelper with (nolock) where IntValue = cardholder_index and ReferenceId = @stringContainsHelperRefId)
group by cardholder_index
Run Code Online (Sandbox Code Playgroud)

https://www.brentozar.com/pastetheplan/?id=SyHl9xFeS

sql-server execution-plan type-conversion sql-server-2017

2
推荐指数
1
解决办法
428
查看次数