diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-03-01 01:22:44 +0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-03-05 17:14:43 +0300 |
commit | 0a4ee10eda01e23ddea0e6b4f80f61df3ffaabde (patch) | |
tree | e80e5f0c65498576459a814fcb5da8ef7da6faa3 /app/controllers/projects/compare_controller.rb | |
parent | 369d34c7c8e006d2568e4a1b12b6493830811270 (diff) |
Fix n+1 issue by not reloading fully loaded blobs
Diffstat (limited to 'app/controllers/projects/compare_controller.rb')
-rw-r--r-- | app/controllers/projects/compare_controller.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/controllers/projects/compare_controller.rb b/app/controllers/projects/compare_controller.rb index 3cb4eb23981..2b0c2ca97c0 100644 --- a/app/controllers/projects/compare_controller.rb +++ b/app/controllers/projects/compare_controller.rb @@ -17,10 +17,8 @@ class Projects::CompareController < Projects::ApplicationController def show apply_diff_view_cookie! - # n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/37430 - Gitlab::GitalyClient.allow_n_plus_1_calls do - render - end + + render end def diff_for_path |