You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(rs.avg_logical_io_reads * 8)/(1024*1024) AS 'Read (GB)', -- This may be excessive in most use cases, but if this is returning numbers bigger than 1 you probably have a problem
rs.avg_rowcount
FROM sys.query_store_query q
JOIN sys.query_store_plan p ON q.query_id = p.query_id
JOIN sys.query_store_runtime_stats rs ON p.plan_id = rs.plan_id
JOIN sys.query_store_runtime_stats_interval rsi ON rs.runtime_stats_interval_id = rsi.runtime_stats_interval_id
-- Some optional filters
-- WHERE q.last_execution_time > '2026-02-15' AND q.last_execution_time < '2026-02-17'
-- WHERE q.object_id = OBJECT_ID('INSERT NAME HERE') (useful for stored proces)