レスポンスタイムが気がついたら2004msもかかるようになってました。
前までは300ms〜400msでした。最近やったことはactive_adminとchartkickを入れたぐらいです。
Chromeのディベロッパツールで確認したところjsがかなり重くなっていました。
Rendering: layouts/application 1881.9 +139.0 2 sql 0.7
ちなみにですがactive_adminで作った管理画面は300ms程度です。
サーバログ
Started GET "/items/category_index/959348699" for 127.0.0.1 at 2015-02-09 22:34:29 +0900
Processing by ItemsController#category_index as HTML
Parameters: {"id"=>"959348699"}
Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 1]]
Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = ? [["parent_id", 1]]
Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = ? [["parent_id", 959348699]]
User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1
Category Load (0.1ms) SELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT 1 [["id", 959348699]]
Item Load (0.3ms) SELECT "items".* FROM "items" WHERE "items"."category_id" = 959348699 ORDER BY "items"."created_at" DESC LIMIT 48 OFFSET 0
Rendered items/_index.html.erb (13.6ms)
(0.2ms) SELECT COUNT() FROM "items" WHERE "items"."category_id" = 959348699
Rendered items/category_index.html.erb within layouts/application (18.7ms)
Profile Load (0.1ms) SELECT "profiles". FROM "profiles" WHERE "profiles"."user_id" = ? LIMIT 1 [["user_id", 1]]
Category Load (0.2ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1
CACHE (0.0ms) SELECT "categories".* FROM "categories" WHERE "categories"."parent_id" = 1
Completed 200 OK in 1147ms (Views: 1140.2ms | ActiveRecord: 1.5ms)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。