Commit 849d10c7c2b0054e6c668c3011ba0977ba309721
1 parent
64b1b297
Exists in
master
and in
29 other branches
Remove posts relations eager loading
It improved the performance on local environment but after testing it on alpha environment, it displayed a reasonable performance degradation.
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
... | ... | @@ -83,8 +83,6 @@ class ContentViewerController < ApplicationController |
83 | 83 | @page.posts |
84 | 84 | end |
85 | 85 | |
86 | - posts = posts.includes(:parent, {:profile => [:domains, :environment]}, :author) | |
87 | - | |
88 | 86 | #FIXME Need to run this before the pagination because this version of |
89 | 87 | # will_paginate returns a will_paginate collection instead of a |
90 | 88 | # relation. | ... | ... |