Improve GitHub import performance Closes #36288, #36292, and #38467 See merge request gitlab-org/gitlab-ce!14445