Skip to content

Conversation

@DavidWiseman
Copy link
Collaborator

Improve performance of RunningQueries collection by adding a HASH join hint. The hint is to avoid a nested loops join which results in multiple executions of the DMV. This can be a problem when the DMVs return a large number of rows. #1663

Improve performance of RunningQueries collection by adding a HASH join hint.  The hint is to avoid a nested loops join which results in multiple executions of the DMV.  This can be a problem when the DMVs return a large number of rows.
#1663
Copilot AI review requested due to automatic review settings December 4, 2025 10:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the performance of the RunningQueries SQL collection by adding HASH join hints to prevent inefficient nested loops joins that can cause performance issues when DMVs return large datasets.

Key Changes:

  • Added HASH join hints to two join operations in the SQLRunningQueries.sql query

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DavidWiseman DavidWiseman merged commit 1319f40 into main Dec 4, 2025
7 checks passed
@DavidWiseman DavidWiseman deleted the DavidWiseman-patch-1 branch December 4, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants