HI everyone,
I just restored a DB on sql2016 from sql2012. One of my sql queries that heavily uses temp tables is running 3x slowin sql 2016 . I am still baffled with this performance degradation. I read some articles on google to set Compatibility level to 2012 (110) and Legacy Cardinality Estimation to TRUE that will boost the performance. But evenchanging the parameters didnt help. Same queries using temp table is running 2x faster on sql 2012.
Has anyone faced this kind of performance degradation before? I would look into the query but again reason it is running faster in sql2012 tells me there is some performance configuration I am missing.
Any help is appreciated.
Thanks,
Rohit