MergeWorker executes more than 100 SQL queries
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=464676) </details> <!--IssueSummary end--> This worker executes more than 100 SQL queries, the maximum number of queries allowed as per MR https://gitlab.com/gitlab-org/gitlab/-/merge_requests/154254. The number of queries should be reduced to less than 100 and the corresponding whitelisted sections of code (`Gitlab::QueryLimiting.disable('...')`) should be removed. See https://gitlab.com/gitlab-org/gitlab/-/jobs/6953155045 for example trace Reference: https://docs.gitlab.com/ee/development/database/query_count_limits.html
issue