ruby on rails - Increase speed of ActiveAdmin -


in rails application, activeadmin slow. realy need performance boost , need keep filters.

i think consuming things filters , drop down boxes. see 2 options can apply, cache , includes. so, have 2 questions :

  1. is possible apply joins or includes when active admin find data? need apply scopes on filters , on associations.
  2. is possible apply cache on filter , on index?

this example association. on model, have :

class providerservice < activerecord::base   belongs_to :service   belongs_to :provider_profile, foreign_key: :provider_profile_id    def display_name     [service.title, provider_profile.display_name].join(" - ")   end end 

each time name displayed, query. it's long.

a bonus question : there other solutions boost perf?

i tried many optimisations it's not fast want. think activeadmin admin part fast it's better use else when become more complexe. tried smart listing. works , it's more customizable.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -