MergeWorker executes more than 100 SQL queries

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

This worker executes more than 100 SQL queries, the maximum number of queries allowed as per MR !154254 (merged). 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

Edited Jun 09, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading