Commit f09545e7

mo khan <mo@mokhan.ca>
2013-06-02 13:56:55
optimize queries on homepage
1 parent 9a75c8d
Changed files (1)
app
app/services/queries/find_all_creations_query.rb
@@ -10,6 +10,6 @@ class FindAllCreationsQuery
   private
 
   def find_creations
-    Creation.includes(:user).joins(:photos).where(:is_restricted => false).uniq.includes(:user)
+    Creation.includes(:user, :photos).where(:is_restricted => false).uniq
   end
 end