Open benwbrum opened 4 months ago
Line 41 of the view is
-@owners.each do |owner|
Since that's the first time we access @owners
, AREL is probably waiting until then to execute the query.
Here is the query in dashboard_controller.rb
:
# Get random Collections and DocSets from paying users
@owners = User.findaproject_owners.order(:display_name).joins(:collections)
.left_outer_joins(:document_sets).includes(:collections)
The old findaproject page has similar performance problems.
The new landing page is taking an average of 6-7 seconds to load.
This query is taking 3340ms to run: