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

[cuebot] Fix queries find_jobs_by_show #1343

Conversation

ramonfigueiredo
Copy link
Collaborator

  • Fix the where clause in the find_jobs_by_show queries (FIND_JOBS_BY_SHOW_PRIORITY_MODE and FIND_JOBS_BY_SHOW_BALANCED_MODE)
  • Remove duplicate PK check "job_resource.pk_job = job.pk_job" that is the same as "job.pk_job = job_resource.pk_job"

- Fix the where clause in the find_jobs_by_show queries (FIND_JOBS_BY_SHOW_PRIORITY_MODE and FIND_JOBS_BY_SHOW_BALANCED_MODE)
- Remove duplicate PK check "job_resource.pk_job = job.pk_job" that is the same as "job.pk_job = job_resource.pk_job"
@ramonfigueiredo
Copy link
Collaborator Author

By removing the extra PK check the find_jobs_by_show becomes a little bit faster. This is important when OpenCue is dealing with a huge number of jobs, making it faster.

@ramonfigueiredo
Copy link
Collaborator Author

ramonfigueiredo commented Feb 15, 2024

Hi @bcipriano

Thanks for your review and approval.

I don't have the right to merge yet!

@bcipriano bcipriano merged commit 3ce95a9 into AcademySoftwareFoundation:master Feb 16, 2024
12 checks passed
carlosfelgarcia pushed a commit to carlosfelgarcia/OpenCue that referenced this pull request May 22, 2024
carlosfelgarcia pushed a commit to carlosfelgarcia/OpenCue that referenced this pull request May 22, 2024
@ramonfigueiredo ramonfigueiredo deleted the fix_queries_find_jobs_by_show branch October 15, 2024 17:06
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