Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

ActiveAdmin powered app performance #71

Open
idrozd opened this Issue · 6 comments

6 participants

@idrozd

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

It seems I'm experiencing this issue as well.

@dpmccabe

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.

@andrewroth

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
@dpmccabe

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

@RobWu

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
Closed

slows down any request in development mode #278

@philipnery

This is related to #102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.