I transitioned a database from a SQL Server 12.0.2548.0 to an Azure SQL database V12. I used SQL Database Migration Wizard, so it should be the same database with regards to indexes, keys, data, tables etc.
However, the performance is generally a lot slower and I have one particular query that takes 7 seconds on the SQL Server database and it takes 20 minutes (!) on the Azure SQL database. On the Azure SQL data - which is an S3 - the CPU and DTU usage is at 100 % the entire 20 minutes.
I already regenerated the indexes on the Azure SQL database with EXEC sp_updatestats
.
I am a bit at a loss here, I am a developer, not a DBA.
Where should I start figuring out what causes this extreme difference in performance?
WITH
keyword). – Daniel Hilgarth