Swap conditions to reduce frequency of database query
The `Gitlab::Mirror.reschedule_immediately?` performs a rather heavy query and it was detected that this is the major contributor to total query time on GitLab.com (50% of total time is spent in this query!). Context: https://gitlab.com/gitlab-org/gitlab-ce/issues/60524
Showing
Please register or sign in to comment