Migrated DB to SQL Azure very slow

|_SQLViking_| 26 Reputation points
2021-10-07T09:04:06.053+00:00

Hi!

I migrated a quite simple DB from SQL 2016 to SQL Azure PaaS.

The app server using the DB is also in Azure, same location and RG.

Now when running queries it is extremely slow. Both from the app server, and I also did a test creating 750000 rows:

-onprem server: 5,38 min
-SQL Azure: 42,27 min

All the time the utilization of resources (CPU/IO) are very low (0-3%)

Azure SQL Database
{count} vote

Accepted answer
  1. Alberto Morillo 32,886 Reputation points MVP
    2021-10-07T12:12:07.467+00:00

    This is typical scenario.

    Once you have migrated, make sure you defragment all indexes and update all statistics using Ola Hallengren scripts. Use Azure Automation to make this a daily task.

    After that, create missing indexes reported by the T-SQL script shown on this article.

    After that you will see performance improvements.


0 additional answers

Sort by: Most helpful