Controller action Projects::NetworkController#show executes more than 100 SQL queries
Description
This controller executes more than 100 SQL queries, the maximum number of
queries allowed as per MR
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/16466. The number of
queries should be reduced to less than 100 and the corresponding whitelisted
sections of code (Gitlab::QueryLimiting.whitelist('...')
) should be removed.
Impact
This query goes from 1.5K to 20. See more details in #20782 (comment 539070911).
Edited by Chun Du