Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed subquery on index_resumable_operations to use 'state' instead… #480

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

muchinski
Copy link

We felt a huge performance improvement by changing this subquery to use "state = 1" instead of "state_desc = 'PAUSED'".
In the test scenario this query return about 130k rows. After applying the change, the time for this query went from 20 minutes to 20 seconds. If there are rows on sys.index_resumable_operations, the performance gain is even bigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants