Share via

Azure SQL Database Query Performance, misleading as it includes primary and standby data

Nancy Wotawa 0 Reputation points
2026-04-09T15:16:48.2833333+00:00

Query Performance is including information for primary and secondary (note this is a business critical read-only replica, not a geo). Take a query ID provided, go to query store, it shows on Secondary, not Primary. This gives misleading information as it is reporting high consuming queries that are not running on this DB, they're actually running on the secondary. I'm betting this was introduced with this enhancement "https://techcommunity.microsoft.com/blog/azuredbsupport/read-only-queries-are-now-captured-in-the-primary-query-store-/4485048" in January. Why isn't there an option to select Primary/Secondary? What is this doing to automation? If it's including queries from the secondary, then making changes on primary based on this, could be very bad. Some cases could be good. Either way, it's misleading and I'd argue wrong. The page is labeled for the primary, no other metrics are for the secondary but this one buries information for the secondary in it.

Azure SQL Database

Your answer

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