Commit 849d10c7c2b0054e6c668c3011ba0977ba309721

Authored by Rodrigo Souto
1 parent 64b1b297

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.
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.
... ...