Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
N+1 TreeEntry queries in Projects::BlobController#show
If you load a Markdown with many links, it looks like it's possible that `Projects::BlobController` renders a lot of Markdown and calls `Commit#tree_entry` over and over.
It looks to me that:
1. `RelativeLinkFilter` calls `Commit#uri_type`
2. `Commit#uri_type` calls `Gitlab::Git::Commit#tree_entry`
I think we'll want to make the `rugged_tree_entry` feature flag use the Rugged implementation as well.
Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/57317.
This will revert https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20176/diffs.
When the performance bar is enabled, the look for the JSON request [on this page](https://gitlab.com/novel-group/txt-source/blob/master/user_out/%E9%BB%91%E4%B9%8B%E9%AD%94%E7%8E%8B/%E5%B0%8E%E8%88%AA%E7%9B%AE%E9%8C%84.md), which make over 600 requests.
issue