I have two DBs with the same schema and tables in the same elastic pool. One is super slow and other is fast.

Dubravko Kišić 0 Reputation points
2025-04-01T08:46:29.77+00:00

One DB from the elastic pool is slow, other is fast.

They have the same schema and structure.

If I compare same tables from these differenct DBs, a simple query like SELECT COUNT(*) on one will last 1500 ms, and 100 ms on the other (they have similar number of rows).

Thought at first it was a fragmentation issue, and I've rebuilt all the indexes but it's still the same.

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. ShaktiSingh-MSFT 16,276 Reputation points
    2025-04-23T06:19:06.1666667+00:00

    Hi Dubravko Kišić •,

    Welcome to Microsoft Q&A forum.

    As I understand, you are facing slowness in two DBs with the same schema and tables in the same elastic pool.

    If multiple queries run slower on one server than the other, the most probable cause is the differences in server or data environment. Go to Diagnose environment differences and see if the comparison between the two servers is valid.

    Refer https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/performance/troubleshoot-query-perf-between-servers#diagnose-environment-differences for deeper insight.

    Let us know if above helps, or if you still facing issue please share your server level details over the opened private message so that we can troubleshoot and understand the reason of slowness.

    Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.