質問編集履歴

1

サーバーのログを現象に適合したものに変更しました。

2018/06/22 12:47

投稿

orori
orori

スコア42

test CHANGED
File without changes
test CHANGED
@@ -30,19 +30,47 @@
30
30
 
31
31
  >
32
32
 
33
- Started POST "/microposts" for 182.236.21.88 at 2018-06-22 12:03:06 +0000
33
+ Started POST "/microposts" for 182.236.21.88 at 2018-06-22 12:45:03 +0000
34
34
 
35
35
  Processing by MicropostsController#create as HTML
36
36
 
37
- Parameters: {"utf8"=>"✓",, "micropost"=>{"content"=>"123"}, "commit"=>"Post"}
37
+ Parameters: {"utf8"=>"✓", "micropost"=>{"content"=>""}, "commit"=>"Post"}
38
+
39
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
40
+
41
+ (0.1ms) begin transaction
42
+
43
+ (0.0ms) rollback transaction
44
+
45
+ Rendering static_pages/home.html.erb within layouts/application
46
+
47
+ (0.2ms) SELECT COUNT(*) FROM "microposts" WHERE "microposts"."user_id" = ? [["user_id", 1]]
48
+
49
+ Rendered shared/_user_info.html.erb (2.0ms)
50
+
51
+ Rendered shared/_error_messages.html.erb (0.6ms)
52
+
53
+ Rendered shared/_micropost_form.html.erb (2.3ms)
54
+
55
+ (0.1ms) SELECT COUNT(*) FROM "microposts" WHERE (user_id = 1)
56
+
57
+ Micropost Load (0.3ms) SELECT "microposts".* FROM "microposts" WHERE (user_id = 1) ORDER BY "microposts"."created_at" DESC LIMIT ? OFFSET ? [["LIMIT", 30], ["OFFSET", 0]]
38
58
 
39
59
  User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
40
60
 
41
- (0.0ms) begin transaction
61
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
42
62
 
43
- SQL (2.0ms) INSERT INTO "microposts" ("content", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["content", "123"], ["user_id", 1], ["created_at", "2018-06-22 12:03:06.284509"], ["updated_at", "2018-06-22 12:03:06.284509"]]
63
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
44
64
 
45
- (5.6ms) commit transaction
65
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
66
+
67
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
68
+
69
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
70
+
71
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
72
+
73
+ CACHE User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]]
46
74
 
47
75
 
48
76