ActiveAdmin powered app performance #71

Open
idrozd opened this Issue Feb 24, 2012 · 6 comments

Comments

Projects
None yet
6 participants

idrozd commented Feb 24, 2012

Disabling rails_footnotes decreased request execution time in AA powered app from 8-13 seconds to about 0,5

I have 5 registered resources
Run on rails 3.2.1; MRI 1.9.3-head; ubuntu 11.10

pupeno commented Feb 24, 2012

It seems I'm experiencing this issue as well.

Contributor

dpmccabe commented Mar 27, 2012

This is happening to me using Rails 3.1.3, rails-footnotes 3.7.6 and activeadmin 0.3.4. I had this problem with the 3.7.5 version, as well. On any request, I'll get a response like Completed 200 OK in 93656ms (Views: 35.9ms | ActiveRecord: 77.7ms), which means I can't use rails-footnotes at all.

What about something like this?

config/initializers/rails_footnotes.rb:

if defined?(Footnotes) && Rails.env.development?
  Footnotes.setup do |config|
    config.before {|controller, filter| 
      puts controller.class.name
      if controller.class.name =~ /^Admin::/
        filter.notes = []
      end
    }
  end

  Footnotes.run! 
end
Contributor

dpmccabe commented May 30, 2012

So far so good. I'll post again if I notice my requests taking a long time again. Thanks!

RobWu commented Jul 12, 2012

Looks like the issue are the assign values of active admin.

if you only remove assigns it works fast again.

  Footnotes.setup do |config|
    config.before do |controller, filter|
      filter.notes -= [:assigns] if controller.class.name =~ /^Admin::/
    end
  end

@RobWu RobWu referenced this issue in activeadmin/activeadmin Oct 18, 2013

Closed

slows down any request in development mode #278

This is related to #102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment