SP taking 15 minutes, but the same query when executed returns results in 1-2 minutes

前端 未结 11 1116
失恋的感觉
失恋的感觉 2021-02-01 03:22

So basically I have this relatively long stored procedure. The basic execution flow is that it SELECTS INTO some data into temp tables declared with he #

11条回答
  •  隐瞒了意图╮
    2021-02-01 03:54

    I'd also look into parameter sniffing. Could be the proc needs to handle the parameters slighlty differently.

提交回复
热议问题