Redis N+1 in /api/v4/groups/:id/projects - forks count key
Issue that derives from #214510 (closed)
One of a redis keys cache:gitlab:projects/count_service/$NUMBER/$NUMBER/forks_count
is called because of this place:
https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/services/projects/batch_forks_count_service.rb#L9 but actually this place is called because of https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/services/projects/batch_count_service.rb#L16 - if we were able to refactor it could help - calling global_count
that can fetch multiple keys at once in the loop seems like the not so efficient way.