Resolve "Projects::CommitsController#show is slow partially due to SQL queries" Closes #34509 See merge request !13762