Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: improve query plan for find-running-job-of-type query
This commit improves the query plan for the `find-running-jobs-of-type` query by removing an `ORDER BY` clause if a job ID to ignore was not given. This can eliminate an index join from the query plan in some cases, making the query play more efficient. Informs #107405 Release note: None
- Loading branch information