Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do I make active admin load faster

on heroku, my active admin Report model page loads very slowly and usually just times out. I found the culprit:

Interaction Load (114.0ms)  SELECT "interactions".* FROM "interactions"
FbUser Load (66.5ms)  SELECT "fb_users".* FROM "fb_users"

How do I make this page load faster with active admin?

like image 869
Matthew Berman Avatar asked Mar 07 '26 13:03

Matthew Berman


1 Answers

Likely, the solution is very simple:

ActiveAdmin.register YourModel do

  remove_filter :interactions
  remove_filter :fb_user

end

For more performance tips, see: How can I optimize active_admin

like image 86
seanlinsley Avatar answered Mar 10 '26 02:03

seanlinsley