Rails respond to JSON extremely slow on Heroku

Viewed 15

I'm using a JSON response in my controller:

respond_to do |format|
    format.json {render json: [products: @products, boxes: @boxes,categories: @categories, giftpacks: @giftpacks,extras: @extras,user: @user,kits: @kits]}
end

In my local server, I'm getting this time load:

enter image description here

When deployed to Heroku, I'm getting this time load and a 2.4MB file:

enter image description here

¿How can I speed up things? This is so annoying.

Thanks!

0 Answers
Related