简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM