Controller Import::BitbucketController#create executes more than 100 SQL queries (P90 - 100)

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.

Update 2021-04-10

This issue seems symptomatic of too much work happening in Projects::CreateService. Import endpoints largely decorate then delegate to this shared domain service, which covers a variety of project creation scenarios. Improvements to that service will benefit import endpoints proportionally across the board.

Edited Apr 10, 2021 by Matthias Käppler
Assignee Loading
Time tracking Loading