SET merge_status query taking longer than usual (-3837852351643424677)
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Context
During Database triage, I noticed the the NewMergeRequestWorker has appeared in the top 5 queries by total time. It's in 2nd place this week. This was not the case last week.
https://console.postgres.ai/gitlab/gitlab_production/reports/3902/files/2_2.sql/sql?raw
https://console.postgres.ai/gitlab/gitlab_production/reports/3902/files/637416/md
Can you please investigate this further? I couldn't find the appropriate gitlab group handle.
Goal / Exit criteria
Ensure this query exit the report of the top 50 queries by total time.
Proposal
-
Complete https://gitlab.com/gitlab-org/gitlab/-/issues/554568 which improved this significantly. -
Complete https://gitlab.com/groups/gitlab-org/-/epics/18874 which should contribute to this. -
Assess if more work is needed.
Current status
Query rank over time (higher is better):
- 2025-05-26:
2out of 50 https://console.postgres.ai/gitlab/gitlab_production/reports/3902/files/637416/md - initial report - 2025-07-28:
1out of 50 https://console.postgres.ai/gitlab/gitlab_production/reports/6706/files/960341/md - 2025-08-04:
38out of 50 https://console.postgres.ai/gitlab/gitlab_production/reports/7111/files/985704/md - improvement due to GIN index removal - 2025-09-01:
41out of 50 https://console.postgres.ai/gitlab/gitlab_production/reports/8705/files/989590/md - 2025-09-23:
31out of 50 https://console.postgres.ai/gitlab/gitlab_production/reports/182176/files/992376/md - 2025-10-06:
39out of 50 https://console.postgres.ai/gitlab/gitlab_production/reports/217829/files/994240/md
Edited by François Rosé