StuckImportJobsWorker query performance optimization
What does this MR do?
Prevents a statement timeout
in StuckImportJobsWorker
(as mentioned in https://gitlab.com/gitlab-org/gitlab-ce/issues/49264 and https://gitlab.com/gitlab-com/gl-infra/production/issues/527#note_112993236) by improving the performance of the query that fetches the enqueued projects.
What are the relevant issue numbers?
https://gitlab.com/gitlab-com/gl-infra/production/issues/527 https://gitlab.com/gitlab-org/gitlab-ce/issues/49264
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process.