Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Query in sql 2K8R2 : 13 sec, on 2K14 : 23 minutes..

$
0
0
Hi, i am facing a huge issue in sql 2014 (SP1)i have a very very complex query from a third party software.It involve 10 table variable and a lot (seriously a lot) of subqueriesOf course the query is horrible, it had to be completly redesigned but anyway at least i mustn't have this so big difference (13seconds=>23 minutes)The execution plan is very very hard to readBy the way on the server i did some test : 23 minutes when i run it on sql 2K14If i switch the compatibility level on level 100 it comes back to 13 seconds (so same hardware, only one instance, and of course same configuration as i just switch compatibility level)When i did the migration i did that : backup/restore of the dbswitch to compatibility level 120DBCC CHECKDB WITH DATA_PURITY;http://thomaslarock.com/2014/06/upgrading-to-sql-server-2014-a-dozen-things-to-check/EXEC sp_MSforeachtable @command1='UPDATE STATISTICS ? WITH FULLSCAN';the difference in performance is so huge...I check cumulative updates, it seems some fixes are looking the issue i have but as i have already put SP1 i cannot put CU7 (i didn't found the cu post SP1 as they used to have before)Any idea where i can dig?I can provide execution plan but they are really big(i follow this guide for the upgrade : http://thomaslarock.com/2014/06/upgrading-to-sql-server-2014-a-dozen-things-to-check/)

Viewing all articles
Browse latest Browse all 3145

Trending Articles