find_cache 0.1.8 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGE-LOG +4 -0
- data/README.rdoc +6 -2
- data/lib/find_cache/cacheable.rb +12 -12
- data/lib/find_cache/version.rb +1 -1
- data/test/dummy/config/environments/test.rb +3 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1229 -0
- data/test/dummy/tmp/cache/275/6E0/Post%2F1 +0 -0
- data/test/dummy/tmp/cache/29F/F40/User%2F20 +0 -0
- data/test/dummy/tmp/cache/2A0/F40/User%2F12 +0 -0
- data/test/dummy/tmp/cache/2A1/F50/User%2F13 +0 -0
- data/test/dummy/tmp/cache/2A2/F60/User%2F14 +0 -0
- data/test/dummy/tmp/cache/2A3/F70/User%2F15 +0 -0
- data/test/dummy/tmp/cache/2A4/F80/User%2F16 +0 -0
- data/test/dummy/tmp/cache/2A5/F90/User%2F17 +0 -0
- data/test/dummy/tmp/cache/2A6/FA0/User%2F18 +0 -0
- data/test/dummy/tmp/cache/2A7/FB0/User%2F19 +0 -0
- data/test/dummy/tmp/cache/3D6/DB0/Comment%2F50 +0 -0
- data/test/dummy/tmp/cache/3D7/DB0/Comment%2F42 +0 -0
- data/test/dummy/tmp/cache/3D7/DD0/Comment%2F60 +0 -0
- data/test/dummy/tmp/cache/3D8/DC0/Comment%2F43 +0 -0
- data/test/dummy/tmp/cache/3D8/DD0/Comment%2F52 +0 -0
- data/test/dummy/tmp/cache/3D8/DF0/Comment%2F70 +0 -0
- data/test/dummy/tmp/cache/3D9/DD0/Comment%2F44 +0 -0
- data/test/dummy/tmp/cache/3D9/DE0/Comment%2F53 +0 -0
- data/test/dummy/tmp/cache/3D9/DF0/Comment%2F62 +0 -0
- data/test/dummy/tmp/cache/3D9/E10/Comment%2F80 +0 -0
- data/test/dummy/tmp/cache/3DA/DE0/Comment%2F45 +0 -0
- data/test/dummy/tmp/cache/3DA/DF0/Comment%2F54 +0 -0
- data/test/dummy/tmp/cache/3DA/E00/Comment%2F63 +0 -0
- data/test/dummy/tmp/cache/3DA/E10/Comment%2F72 +0 -0
- data/test/dummy/tmp/cache/3DB/E00/Comment%2F55 +0 -0
- data/test/dummy/tmp/cache/3DB/E10/Comment%2F64 +0 -0
- data/test/dummy/tmp/cache/3DB/E20/Comment%2F73 +0 -0
- data/test/dummy/tmp/cache/3DB/E30/Comment%2F82 +0 -0
- data/test/dummy/tmp/cache/3DC/E00/Comment%2F47 +0 -0
- data/test/dummy/tmp/cache/3DC/E20/Comment%2F65 +0 -0
- data/test/dummy/tmp/cache/3DC/E30/Comment%2F74 +0 -0
- data/test/dummy/tmp/cache/3DC/E40/Comment%2F83 +0 -0
- data/test/dummy/tmp/cache/3DD/E10/Comment%2F48 +0 -0
- data/test/dummy/tmp/cache/3DD/E20/Comment%2F57 +0 -0
- data/test/dummy/tmp/cache/3DD/E40/Comment%2F75 +0 -0
- data/test/dummy/tmp/cache/3DD/E50/Comment%2F84 +0 -0
- data/test/dummy/tmp/cache/3DE/E20/Comment%2F49 +0 -0
- data/test/dummy/tmp/cache/3DE/E30/Comment%2F58 +0 -0
- data/test/dummy/tmp/cache/3DE/E40/Comment%2F67 +0 -0
- data/test/dummy/tmp/cache/3DE/E60/Comment%2F85 +0 -0
- data/test/dummy/tmp/cache/3DF/E40/Comment%2F59 +0 -0
- data/test/dummy/tmp/cache/3DF/E50/Comment%2F68 +0 -0
- data/test/dummy/tmp/cache/3DF/E60/Comment%2F77 +0 -0
- data/test/dummy/tmp/cache/3E0/E60/Comment%2F69 +0 -0
- data/test/dummy/tmp/cache/3E0/E70/Comment%2F78 +0 -0
- data/test/dummy/tmp/cache/3E1/E80/Comment%2F79 +0 -0
- data/test/find_cache_test.rb +6 -0
- metadata +98 -10
- data/test/dummy/log/development.log +0 -498
data/CHANGE-LOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
version 0.2.0
|
2
|
+
# find_by_id and find_all_by_id methods converted to where queries
|
3
|
+
# id based caching replaced for find_cache and find_all_cache with primary_key based queries instead of looking id queries
|
4
|
+
|
1
5
|
version 0.1.8
|
2
6
|
# local memorization on dynamic methods removed to prevent duplicate caching
|
3
7
|
|
data/README.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
It is simply an ActiveRecord object caching gem using Rails.cache methods.
|
4
4
|
|
5
|
-
It makes "ActiveRecord 'find_by_id, find_by_(attr)' methods and 'has_one, belongs_to' relations" cacheable by
|
5
|
+
It makes "ActiveRecord 'find_by_id, find_by_(attr)' methods and 'has_one, belongs_to' relations" cacheable by PrimaryKey(PK) or any referenced columns using Rails.cache methods. It also supports fetching multiple records using PKs(ids) with find_all_cache method(if cache store supports multiple reads [hint: memcached_store, dalli_store supports.]).
|
6
6
|
|
7
7
|
== Installation
|
8
8
|
|
@@ -89,7 +89,11 @@ If your worker thread does not kill itself after execution you should clean the
|
|
89
89
|
FindCache::KeyGen.clear_find_cache_store
|
90
90
|
end
|
91
91
|
|
92
|
-
Tested with dalli (https://github.com/mperham/dalli).
|
92
|
+
Tested with dalli (https://github.com/mperham/dalli).
|
93
|
+
|
94
|
+
== Todo
|
95
|
+
|
96
|
+
More tests!
|
93
97
|
|
94
98
|
== Credits
|
95
99
|
|
data/lib/find_cache/cacheable.rb
CHANGED
@@ -20,7 +20,7 @@ module FindCache
|
|
20
20
|
# find_cache_has_one :user_detail, UserDetail, :user_id
|
21
21
|
def find_cache_has_one(attribute, model, foreign_key)
|
22
22
|
send :define_method, attribute.to_sym do |*args|
|
23
|
-
model.find_cache_by_ref(foreign_key, self.
|
23
|
+
model.find_cache_by_ref(foreign_key, self.send(self.class.primary_key.to_sym))
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
@@ -42,8 +42,8 @@ module FindCache
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
# To find an Active Record object using
|
46
|
-
# and caching it using Rails.cache methods
|
45
|
+
# To find an Active Record object using PK (:id) based where
|
46
|
+
# query method and caching it using Rails.cache methods
|
47
47
|
#
|
48
48
|
# ==== Parameters
|
49
49
|
#
|
@@ -57,7 +57,7 @@ module FindCache
|
|
57
57
|
key = KeyGen.cache_key(name, id)
|
58
58
|
$find_cache_store[KeyGen.global_cache_key][key] ||= (
|
59
59
|
Rails.cache.fetch(key) do
|
60
|
-
|
60
|
+
where(primary_key => id).limit(1).first
|
61
61
|
end
|
62
62
|
)
|
63
63
|
end
|
@@ -79,10 +79,10 @@ module FindCache
|
|
79
79
|
if (id = Rails.cache.read(key_ref))
|
80
80
|
find_cache(id)
|
81
81
|
else
|
82
|
-
item =
|
82
|
+
item = where(ref_attr => ref_val).limit(1).first
|
83
83
|
if item
|
84
|
-
Rails.cache.write(key_ref, item.
|
85
|
-
Rails.cache.write(KeyGen.cache_key(name, item.
|
84
|
+
Rails.cache.write(key_ref, item.send(primary_key.to_sym))
|
85
|
+
Rails.cache.write(KeyGen.cache_key(name, item.send(primary_key.to_sym)), item)
|
86
86
|
end
|
87
87
|
item
|
88
88
|
end
|
@@ -105,7 +105,7 @@ module FindCache
|
|
105
105
|
# UserDetail.find_all_cache([21, 1, 2, 19, 43])
|
106
106
|
# # Find users with ids ([21, 1, 2, 19, 43]) and id ASC
|
107
107
|
# UserDetail.find_all_cache(([21, 1, 2, 19, 43]), "id ASC")
|
108
|
-
def find_all_cache(ids, order_by = "
|
108
|
+
def find_all_cache(ids, order_by = "#{primary_key} DESC")
|
109
109
|
all_new_cache = []
|
110
110
|
not_in_cache = []
|
111
111
|
cache_ids = ids.map { |id| KeyGen.cache_key(name, id) }
|
@@ -118,14 +118,14 @@ module FindCache
|
|
118
118
|
end
|
119
119
|
end
|
120
120
|
if not_in_cache.length > 0
|
121
|
-
items = order(order_by).
|
121
|
+
items = order(order_by).where(primary_key => not_in_cache)
|
122
122
|
items.each do |item|
|
123
|
-
Rails.cache.write(KeyGen.cache_key(name, item.
|
123
|
+
Rails.cache.write(KeyGen.cache_key(name, item.send(primary_key.to_sym)), item)
|
124
124
|
end
|
125
125
|
all_new_cache += items
|
126
126
|
end
|
127
127
|
all_new_cache.each do |cached_item|
|
128
|
-
$find_cache_store[KeyGen.global_cache_key][KeyGen.cache_key(name, cached_item.
|
128
|
+
$find_cache_store[KeyGen.global_cache_key][KeyGen.cache_key(name, cached_item.send(primary_key.to_sym))] = cached_item
|
129
129
|
end
|
130
130
|
end
|
131
131
|
end
|
@@ -134,7 +134,7 @@ module FindCache
|
|
134
134
|
after_commit :expire_find_cache
|
135
135
|
|
136
136
|
def expire_find_cache
|
137
|
-
key = KeyGen.cache_key(self.class.name, self.
|
137
|
+
key = KeyGen.cache_key(self.class.name, self.send(primary_key.to_sym))
|
138
138
|
Rails.cache.delete(key)
|
139
139
|
$find_cache_store[KeyGen.global_cache_key].delete(key)
|
140
140
|
end
|
data/lib/find_cache/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -477,3 +477,1232 @@ Connecting to database specified by database.yml
|
|
477
477
|
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 11 LIMIT 1
|
478
478
|
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
479
479
|
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
480
|
+
Connecting to database specified by database.yml
|
481
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
482
|
+
[1m[35m (0.1ms)[0m begin transaction
|
483
|
+
[1m[36mSQL (80.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
|
484
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
485
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
486
|
+
[1m[35m (1.4ms)[0m commit transaction
|
487
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
488
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
489
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
490
|
+
[1m[35m (0.0ms)[0m begin transaction
|
491
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
|
492
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
493
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
494
|
+
[1m[35m (1.5ms)[0m commit transaction
|
495
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
496
|
+
[1m[35m (0.0ms)[0m begin transaction
|
497
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
|
498
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
499
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
500
|
+
[1m[35m (1.9ms)[0m commit transaction
|
501
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
502
|
+
[1m[35m (0.1ms)[0m begin transaction
|
503
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
|
504
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
505
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
506
|
+
[1m[35m (1.8ms)[0m commit transaction
|
507
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
508
|
+
[1m[35m (0.0ms)[0m begin transaction
|
509
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["post_id", 1], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
|
510
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
511
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
512
|
+
[1m[35m (2.2ms)[0m commit transaction
|
513
|
+
[1m[36mComment Load (0.5ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (42, 43, 44, 45) ORDER BY id ASC[0m
|
514
|
+
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (42, 43, 44, 45) ORDER BY id ASC
|
515
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
516
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
517
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
518
|
+
[1m[35m (0.1ms)[0m commit transaction
|
519
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
520
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
521
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
522
|
+
[1m[35m (0.1ms)[0m begin transaction
|
523
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00]]
|
524
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["title", nil], ["updated_at", Thu, 30 Aug 2012 20:00:40 UTC +00:00], ["user_id", 12]]
|
525
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 12 LIMIT 1[0m
|
526
|
+
[1m[35m (1.9ms)[0m commit transaction
|
527
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 12 LIMIT 1[0m
|
528
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 12 LIMIT 1
|
529
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
530
|
+
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
531
|
+
Connecting to database specified by database.yml
|
532
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
533
|
+
[1m[35m (0.1ms)[0m begin transaction
|
534
|
+
[1m[36mSQL (67.8ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
|
535
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
536
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
537
|
+
[1m[35m (42.7ms)[0m commit transaction
|
538
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
539
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
540
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
541
|
+
[1m[35m (0.1ms)[0m begin transaction
|
542
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
|
543
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
544
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
545
|
+
[1m[35m (18.0ms)[0m commit transaction
|
546
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
547
|
+
[1m[35m (0.0ms)[0m begin transaction
|
548
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
|
549
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
550
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
551
|
+
[1m[35m (1.7ms)[0m commit transaction
|
552
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
553
|
+
[1m[35m (0.0ms)[0m begin transaction
|
554
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
|
555
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
556
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
557
|
+
[1m[35m (2.1ms)[0m commit transaction
|
558
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
559
|
+
[1m[35m (0.0ms)[0m begin transaction
|
560
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
|
561
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
562
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
563
|
+
[1m[35m (1.7ms)[0m commit transaction
|
564
|
+
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (47, 48, 49, 50) ORDER BY id ASC[0m
|
565
|
+
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (47, 48, 49, 50) ORDER BY id ASC
|
566
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
567
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
568
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
569
|
+
[1m[35m (0.2ms)[0m commit transaction
|
570
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
571
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
572
|
+
[1m[36mUser Load (32.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
573
|
+
[1m[35m (0.1ms)[0m begin transaction
|
574
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00]]
|
575
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 22:55:55 UTC +00:00], ["user_id", 13]]
|
576
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 13 LIMIT 1[0m
|
577
|
+
[1m[35m (22.5ms)[0m commit transaction
|
578
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1[0m
|
579
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 13 LIMIT 1
|
580
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
581
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
582
|
+
Connecting to database specified by database.yml
|
583
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
585
|
+
[1m[36mSQL (81.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00]]
|
586
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
587
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
588
|
+
[1m[35m (1.4ms)[0m commit transaction
|
589
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
590
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
591
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
592
|
+
[1m[35m (0.0ms)[0m begin transaction
|
593
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00]]
|
594
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
595
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
596
|
+
[1m[35m (2.0ms)[0m commit transaction
|
597
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
598
|
+
[1m[35m (0.1ms)[0m begin transaction
|
599
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00]]
|
600
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
601
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
602
|
+
[1m[35m (1.9ms)[0m commit transaction
|
603
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
604
|
+
[1m[35m (0.0ms)[0m begin transaction
|
605
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00]]
|
606
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
607
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
608
|
+
[1m[35m (2.2ms)[0m commit transaction
|
609
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
610
|
+
[1m[35m (0.0ms)[0m begin transaction
|
611
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:02:02 UTC +00:00]]
|
612
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
613
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
614
|
+
[1m[35m (2.0ms)[0m commit transaction
|
615
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (52, 53, 54, 55) ORDER BY id ASC[0m
|
616
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (52, 53, 54, 55) ORDER BY id ASC
|
617
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
618
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
619
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
620
|
+
[1m[35m (0.1ms)[0m commit transaction
|
621
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
622
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
623
|
+
[1m[36mUser Load (42.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
624
|
+
[1m[35m (0.1ms)[0m begin transaction
|
625
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 22 Sep 2012 23:02:03 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:02:03 UTC +00:00]]
|
626
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:02:03 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:02:03 UTC +00:00], ["user_id", 14]]
|
627
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 14 LIMIT 1[0m
|
628
|
+
[1m[35m (1.7ms)[0m commit transaction
|
629
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1[0m
|
630
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 14 LIMIT 1
|
631
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
632
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
633
|
+
Connecting to database specified by database.yml
|
634
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
636
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
|
637
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
638
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
639
|
+
[1m[35m (3.0ms)[0m commit transaction
|
640
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fcbd767c0c8>
|
641
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
642
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
643
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
644
|
+
[1m[35m (0.0ms)[0m begin transaction
|
645
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
|
646
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
647
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
648
|
+
[1m[35m (2.0ms)[0m commit transaction
|
649
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fcbd72f24e8>
|
650
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
651
|
+
[1m[35m (0.0ms)[0m begin transaction
|
652
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
|
653
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
654
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
655
|
+
[1m[35m (1.9ms)[0m commit transaction
|
656
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fcbd71e1b58>
|
657
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
658
|
+
[1m[35m (0.0ms)[0m begin transaction
|
659
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
|
660
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
661
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
662
|
+
[1m[35m (2.1ms)[0m commit transaction
|
663
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fcbd72da898>
|
664
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
665
|
+
[1m[35m (0.0ms)[0m begin transaction
|
666
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
|
667
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
668
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
669
|
+
[1m[35m (1.8ms)[0m commit transaction
|
670
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fcbd73dfbd0>
|
671
|
+
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (57, 58, 59, 60) ORDER BY id ASC[0m
|
672
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (57, 58, 59, 60) ORDER BY id ASC
|
673
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
674
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
675
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
676
|
+
[1m[35m (0.0ms)[0m commit transaction
|
677
|
+
undefined local variable or method `primary_key' for #<Post:0x007fcbd71478c8>
|
678
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
679
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
680
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
681
|
+
[1m[35mSQL (29.7ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00]]
|
682
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:09:33 UTC +00:00], ["user_id", 15]]
|
683
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 15 LIMIT 1
|
684
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
685
|
+
undefined local variable or method `primary_key' for #<User:0x007fcbd710cd40>
|
686
|
+
undefined local variable or method `primary_key' for #<Post:0x007fcbd724f270>
|
687
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1
|
688
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 15 LIMIT 1[0m
|
689
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
690
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
691
|
+
Connecting to database specified by database.yml
|
692
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
693
|
+
[1m[35m (0.1ms)[0m begin transaction
|
694
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
|
695
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
696
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
697
|
+
[1m[35m (2.7ms)[0m commit transaction
|
698
|
+
undefined local variable or method `primary_key' for #<Comment:0x007f7fdbb36fc0>
|
699
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
700
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
701
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
702
|
+
[1m[35m (0.0ms)[0m begin transaction
|
703
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
|
704
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
705
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
706
|
+
[1m[35m (1.7ms)[0m commit transaction
|
707
|
+
undefined local variable or method `primary_key' for #<Comment:0x007f7fdbcdb600>
|
708
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
709
|
+
[1m[35m (0.0ms)[0m begin transaction
|
710
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
|
711
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
712
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
713
|
+
[1m[35m (1.8ms)[0m commit transaction
|
714
|
+
undefined local variable or method `primary_key' for #<Comment:0x007f7fdbcef678>
|
715
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
716
|
+
[1m[35m (0.0ms)[0m begin transaction
|
717
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
|
718
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
719
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
720
|
+
[1m[35m (1.8ms)[0m commit transaction
|
721
|
+
undefined local variable or method `primary_key' for #<Comment:0x007f7fdbcffb90>
|
722
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
723
|
+
[1m[35m (0.0ms)[0m begin transaction
|
724
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
|
725
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
726
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
727
|
+
[1m[35m (1.9ms)[0m commit transaction
|
728
|
+
undefined local variable or method `primary_key' for #<Comment:0x007f7fdbd100d0>
|
729
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (62, 63, 64, 65) ORDER BY id ASC[0m
|
730
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (62, 63, 64, 65) ORDER BY id ASC
|
731
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
732
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
733
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
734
|
+
[1m[35m (0.1ms)[0m commit transaction
|
735
|
+
undefined local variable or method `primary_key' for #<Post:0x007f7fdbd33030>
|
736
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
737
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
738
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
739
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00]]
|
740
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:13:33 UTC +00:00], ["user_id", 16]]
|
741
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 16 LIMIT 1
|
742
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
743
|
+
undefined local variable or method `primary_key' for #<User:0x007f7fdbd79300>
|
744
|
+
undefined local variable or method `primary_key' for #<Post:0x007f7fdbd86cd0>
|
745
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 16 LIMIT 1
|
746
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 16 LIMIT 1[0m
|
747
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
748
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
749
|
+
Connecting to database specified by database.yml
|
750
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
751
|
+
[1m[35m (0.1ms)[0m begin transaction
|
752
|
+
[1m[36mSQL (4.8ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
|
753
|
+
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
754
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
755
|
+
[1m[35m (2.9ms)[0m commit transaction
|
756
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fb034c74570>
|
757
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
758
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
759
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
760
|
+
[1m[35m (0.1ms)[0m begin transaction
|
761
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
|
762
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
763
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
764
|
+
[1m[35m (1.9ms)[0m commit transaction
|
765
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fb034ad59d0>
|
766
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
767
|
+
[1m[35m (0.0ms)[0m begin transaction
|
768
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
|
769
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
770
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
771
|
+
[1m[35m (1.6ms)[0m commit transaction
|
772
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fb03485bfd8>
|
773
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
774
|
+
[1m[35m (0.0ms)[0m begin transaction
|
775
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
|
776
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
777
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
778
|
+
[1m[35m (1.9ms)[0m commit transaction
|
779
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fb034828520>
|
780
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
781
|
+
[1m[35m (0.0ms)[0m begin transaction
|
782
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
|
783
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
784
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
785
|
+
[1m[35m (1.9ms)[0m commit transaction
|
786
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fb034ab4c58>
|
787
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (67, 68, 69, 70) ORDER BY id ASC[0m
|
788
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (67, 68, 69, 70) ORDER BY id ASC
|
789
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
790
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
791
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
792
|
+
[1m[35m (0.1ms)[0m commit transaction
|
793
|
+
undefined local variable or method `primary_key' for #<Post:0x007fb032e5f3a0>
|
794
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
795
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
796
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
797
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00]]
|
798
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:13:52 UTC +00:00], ["user_id", 17]]
|
799
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 17 LIMIT 1
|
800
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
801
|
+
undefined local variable or method `primary_key' for #<User:0x007fb032ff1bf0>
|
802
|
+
undefined local variable or method `primary_key' for #<Post:0x007fb034b30038>
|
803
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1
|
804
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 17 LIMIT 1[0m
|
805
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
806
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
807
|
+
Connecting to database specified by database.yml
|
808
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
809
|
+
[1m[35m (0.1ms)[0m begin transaction
|
810
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
|
811
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
812
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
813
|
+
[1m[35m (3.2ms)[0m commit transaction
|
814
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fcfe5f12748>
|
815
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
816
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
817
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
818
|
+
[1m[35m (0.1ms)[0m begin transaction
|
819
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
|
820
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
821
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
822
|
+
[1m[35m (1.8ms)[0m commit transaction
|
823
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fcfe6b0c468>
|
824
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
825
|
+
[1m[35m (0.0ms)[0m begin transaction
|
826
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
|
827
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
828
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
829
|
+
[1m[35m (1.9ms)[0m commit transaction
|
830
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fcfe6980ab8>
|
831
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
832
|
+
[1m[35m (0.0ms)[0m begin transaction
|
833
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
|
834
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
835
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
836
|
+
[1m[35m (2.4ms)[0m commit transaction
|
837
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fcfe69737f0>
|
838
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
839
|
+
[1m[35m (0.0ms)[0m begin transaction
|
840
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
|
841
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
842
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
843
|
+
[1m[35m (2.0ms)[0m commit transaction
|
844
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fcfe6969908>
|
845
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (72, 73, 74, 75) ORDER BY id ASC[0m
|
846
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (72, 73, 74, 75) ORDER BY id ASC
|
847
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
848
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
849
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
850
|
+
[1m[35m (0.1ms)[0m commit transaction
|
851
|
+
undefined local variable or method `primary_key' for #<Post:0x007fcfe6a87c90>
|
852
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
853
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
854
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
855
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00]]
|
856
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:16:57 UTC +00:00], ["user_id", 18]]
|
857
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 18 LIMIT 1
|
858
|
+
[1m[36m (2.7ms)[0m [1mcommit transaction[0m
|
859
|
+
undefined local variable or method `primary_key' for #<User:0x007fcfe6865188>
|
860
|
+
undefined local variable or method `primary_key' for #<Post:0x007fcfe6830168>
|
861
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 18 LIMIT 1
|
862
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 18 LIMIT 1[0m
|
863
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
864
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
865
|
+
Connecting to database specified by database.yml
|
866
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
867
|
+
[1m[35m (0.1ms)[0m begin transaction
|
868
|
+
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
|
869
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
870
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
871
|
+
[1m[35m (2.7ms)[0m commit transaction
|
872
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbafbe688a0>
|
873
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
874
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
875
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
876
|
+
[1m[35m (0.0ms)[0m begin transaction
|
877
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
|
878
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
879
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
880
|
+
[1m[35m (1.7ms)[0m commit transaction
|
881
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbafb9fdb08>
|
882
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
883
|
+
[1m[35m (0.0ms)[0m begin transaction
|
884
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
|
885
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
886
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
887
|
+
[1m[35m (1.6ms)[0m commit transaction
|
888
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbafbd66858>
|
889
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
890
|
+
[1m[35m (0.0ms)[0m begin transaction
|
891
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
|
892
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
893
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
894
|
+
[1m[35m (1.7ms)[0m commit transaction
|
895
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbafbcaa770>
|
896
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
897
|
+
[1m[35m (0.0ms)[0m begin transaction
|
898
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
|
899
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
900
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
901
|
+
[1m[35m (2.2ms)[0m commit transaction
|
902
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbafbc830a8>
|
903
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (77, 78, 79, 80) ORDER BY id ASC[0m
|
904
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (77, 78, 79, 80) ORDER BY id ASC
|
905
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
906
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
907
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
908
|
+
[1m[35m (0.1ms)[0m commit transaction
|
909
|
+
undefined local variable or method `primary_key' for #<Post:0x007fbafbc98f98>
|
910
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
911
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
912
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
913
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00]]
|
914
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:21:01 UTC +00:00], ["user_id", 19]]
|
915
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 19 LIMIT 1
|
916
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
917
|
+
undefined local variable or method `primary_key' for #<User:0x007fbafbc2b858>
|
918
|
+
undefined local variable or method `primary_key' for #<Post:0x007fbafb898e20>
|
919
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 19 LIMIT 1
|
920
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 19 LIMIT 1[0m
|
921
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
922
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
923
|
+
Connecting to database specified by database.yml
|
924
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
925
|
+
[1m[35m (0.1ms)[0m begin transaction
|
926
|
+
[1m[36mSQL (4.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:38 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:38 UTC +00:00]]
|
927
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
928
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
929
|
+
[1m[35m (2.8ms)[0m commit transaction
|
930
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fc945ca4d40>
|
931
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
932
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
933
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
934
|
+
[1m[35m (0.0ms)[0m begin transaction
|
935
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00]]
|
936
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
937
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
938
|
+
[1m[35m (1.7ms)[0m commit transaction
|
939
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fc944bed218>
|
940
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
941
|
+
[1m[35m (0.0ms)[0m begin transaction
|
942
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00]]
|
943
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
944
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
945
|
+
[1m[35m (2.3ms)[0m commit transaction
|
946
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fc9449fac08>
|
947
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
948
|
+
[1m[35m (0.0ms)[0m begin transaction
|
949
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00]]
|
950
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
951
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
952
|
+
[1m[35m (2.0ms)[0m commit transaction
|
953
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fc944d75b58>
|
954
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
955
|
+
[1m[35m (0.0ms)[0m begin transaction
|
956
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00]]
|
957
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
958
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
959
|
+
[1m[35m (1.8ms)[0m commit transaction
|
960
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fc944caa0c0>
|
961
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (82, 83, 84, 85) ORDER BY id ASC[0m
|
962
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (82, 83, 84, 85) ORDER BY id ASC
|
963
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
964
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
965
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
966
|
+
[1m[35m (0.0ms)[0m commit transaction
|
967
|
+
undefined local variable or method `primary_key' for #<Post:0x007fc944aa3a10>
|
968
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
969
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
970
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
971
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00]]
|
972
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:21:39 UTC +00:00], ["user_id", 20]]
|
973
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 20 LIMIT 1
|
974
|
+
[1m[36m (2.8ms)[0m [1mcommit transaction[0m
|
975
|
+
undefined local variable or method `primary_key' for #<User:0x007fc944f07110>
|
976
|
+
undefined local variable or method `primary_key' for #<Post:0x007fc944f2acf0>
|
977
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1
|
978
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 20 LIMIT 1[0m
|
979
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
980
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
981
|
+
Connecting to database specified by database.yml
|
982
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
983
|
+
Cache read: Post/1
|
984
|
+
Dalli::Server#connect localhost:11211
|
985
|
+
Cache generate: Post/1
|
986
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
987
|
+
Cache write: Post/1
|
988
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
989
|
+
[1m[35mSQL (29.9ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
|
990
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
991
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
992
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
993
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fb499d96610>
|
994
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
995
|
+
Cache read: Post/1
|
996
|
+
Cache generate: Post/1
|
997
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
998
|
+
Cache write: Post/1
|
999
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1000
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1001
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
|
1002
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1003
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1004
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1005
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fb499fe34b8>
|
1006
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1007
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1008
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
|
1009
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1010
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1011
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1012
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fb499688b70>
|
1013
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1014
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1015
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
|
1016
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1017
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1018
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1019
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fb499fa6f18>
|
1020
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1021
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1022
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
|
1023
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1024
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1025
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1026
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fb499f4f790>
|
1027
|
+
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (87, 88, 89, 90) ORDER BY id ASC
|
1028
|
+
Cache read_multi: ["Comment/87", "Comment/88", "Comment/89", "Comment/90"]
|
1029
|
+
[1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (87, 88, 89, 90) ORDER BY id ASC[0m
|
1030
|
+
Cache write: Comment/87
|
1031
|
+
Cache write: Comment/88
|
1032
|
+
Cache write: Comment/89
|
1033
|
+
Cache write: Comment/90
|
1034
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1035
|
+
Cache read: Post/1
|
1036
|
+
Cache generate: Post/1
|
1037
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1038
|
+
Cache write: Post/1
|
1039
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1040
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1041
|
+
undefined local variable or method `primary_key' for #<Post:0x007fb499e7dc90>
|
1042
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1043
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1044
|
+
Cache read: User/1
|
1045
|
+
Cache generate: User/1
|
1046
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1047
|
+
Cache write: User/1
|
1048
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1049
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00]]
|
1050
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:31:45 UTC +00:00], ["user_id", 21]]
|
1051
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 21 LIMIT 1
|
1052
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
1053
|
+
undefined local variable or method `primary_key' for #<User:0x007fb4999f8530>
|
1054
|
+
undefined local variable or method `primary_key' for #<Post:0x007fb499e89e78>
|
1055
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1
|
1056
|
+
Cache read: User/21
|
1057
|
+
Cache generate: User/21
|
1058
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 21 LIMIT 1[0m
|
1059
|
+
Cache write: User/21
|
1060
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
1061
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1062
|
+
Cache read: Post/user_id-1
|
1063
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1064
|
+
Connecting to database specified by database.yml
|
1065
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1066
|
+
Cache read: Post/1
|
1067
|
+
Dalli::Server#connect localhost:11211
|
1068
|
+
Cache fetch_hit: Post/1
|
1069
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1070
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
|
1071
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1072
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1073
|
+
[1m[35m (2.8ms)[0m commit transaction
|
1074
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fd9f3ae0748>
|
1075
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1076
|
+
Cache read: Post/1
|
1077
|
+
Cache generate: Post/1
|
1078
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1079
|
+
Cache write: Post/1
|
1080
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1081
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1082
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
|
1083
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1084
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1085
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1086
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fd9f38d28e8>
|
1087
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1088
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1089
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
|
1090
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1091
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1092
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1093
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fd9f3b632d8>
|
1094
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1095
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1096
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
|
1097
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1098
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1099
|
+
[1m[35m (2.7ms)[0m commit transaction
|
1100
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fd9f3a7b758>
|
1101
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1102
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1103
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
|
1104
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1105
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1106
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1107
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fd9f3a511b0>
|
1108
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (92, 93, 94, 95) ORDER BY id ASC[0m
|
1109
|
+
Cache read_multi: ["Comment/92", "Comment/93", "Comment/94", "Comment/95"]
|
1110
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (92, 93, 94, 95) ORDER BY id ASC
|
1111
|
+
Cache write: Comment/92
|
1112
|
+
Cache write: Comment/93
|
1113
|
+
Cache write: Comment/94
|
1114
|
+
Cache write: Comment/95
|
1115
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1116
|
+
Cache read: Post/1
|
1117
|
+
Cache generate: Post/1
|
1118
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1119
|
+
Cache write: Post/1
|
1120
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1121
|
+
[1m[35m (0.1ms)[0m commit transaction
|
1122
|
+
undefined local variable or method `primary_key' for #<Post:0x007fd9f38ef178>
|
1123
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1124
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1125
|
+
Cache read: User/1
|
1126
|
+
Cache generate: User/1
|
1127
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1128
|
+
Cache write: User/1
|
1129
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1130
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00]]
|
1131
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:33:41 UTC +00:00], ["user_id", 22]]
|
1132
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 22 LIMIT 1[0m
|
1133
|
+
[1m[35m (2.8ms)[0m commit transaction
|
1134
|
+
undefined local variable or method `primary_key' for #<User:0x007fd9f3d16c88>
|
1135
|
+
undefined local variable or method `primary_key' for #<Post:0x007fd9f3d27fd8>
|
1136
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1[0m
|
1137
|
+
Cache read: User/22
|
1138
|
+
Cache generate: User/22
|
1139
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 22 LIMIT 1
|
1140
|
+
Cache write: User/22
|
1141
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
1142
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1143
|
+
Cache read: Post/user_id-1
|
1144
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1145
|
+
Connecting to database specified by database.yml
|
1146
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1147
|
+
Cache read: Post/1
|
1148
|
+
Dalli::Server#connect localhost:11211
|
1149
|
+
Cache fetch_hit: Post/1
|
1150
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1151
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
|
1152
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1153
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1154
|
+
[1m[35m (2.7ms)[0m commit transaction
|
1155
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fac6b731788>
|
1156
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1157
|
+
Cache read: Post/1
|
1158
|
+
Cache generate: Post/1
|
1159
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1160
|
+
Cache write: Post/1
|
1161
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1162
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1163
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
|
1164
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1165
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1166
|
+
[1m[35m (2.2ms)[0m commit transaction
|
1167
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fac6b5c40a8>
|
1168
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1169
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1170
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
|
1171
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1172
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1173
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1174
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fac6bc8d308>
|
1175
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1176
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1177
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
|
1178
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1179
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1180
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1181
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fac6b7eff80>
|
1182
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1183
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1184
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
|
1185
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1186
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1187
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1188
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fac6b19c1b0>
|
1189
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (97, 98, 99, 100) ORDER BY id ASC[0m
|
1190
|
+
Cache read_multi: ["Comment/97", "Comment/98", "Comment/99", "Comment/100"]
|
1191
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (97, 98, 99, 100) ORDER BY id ASC
|
1192
|
+
Cache write: Comment/97
|
1193
|
+
Cache write: Comment/98
|
1194
|
+
Cache write: Comment/99
|
1195
|
+
Cache write: Comment/100
|
1196
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1197
|
+
Cache read: Post/1
|
1198
|
+
Cache generate: Post/1
|
1199
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1200
|
+
Cache write: Post/1
|
1201
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1202
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1203
|
+
undefined local variable or method `primary_key' for #<Post:0x007fac6b7255f0>
|
1204
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1205
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1206
|
+
Cache read: User/1
|
1207
|
+
Cache fetch_hit: User/1
|
1208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1209
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00]]
|
1210
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:34:47 UTC +00:00], ["user_id", 23]]
|
1211
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 23 LIMIT 1
|
1212
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1213
|
+
undefined local variable or method `primary_key' for #<User:0x007fac6b357fb8>
|
1214
|
+
undefined local variable or method `primary_key' for #<Post:0x007fac6bb37dc8>
|
1215
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1
|
1216
|
+
Cache read: User/23
|
1217
|
+
Cache generate: User/23
|
1218
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 23 LIMIT 1[0m
|
1219
|
+
Cache write: User/23
|
1220
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
1221
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1222
|
+
Cache read: Post/user_id-1
|
1223
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1224
|
+
Connecting to database specified by database.yml
|
1225
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1226
|
+
Cache read: Post/1
|
1227
|
+
Dalli::Server#connect localhost:11211
|
1228
|
+
Cache fetch_hit: Post/1
|
1229
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1230
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
|
1231
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1232
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1233
|
+
[1m[35m (2.7ms)[0m commit transaction
|
1234
|
+
undefined local variable or method `primary_key' for #<Comment:0x007f941b1a09a8>
|
1235
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1236
|
+
Cache read: Post/1
|
1237
|
+
Cache generate: Post/1
|
1238
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1239
|
+
Cache write: Post/1
|
1240
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1241
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1242
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
|
1243
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1244
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1245
|
+
[1m[35m (2.2ms)[0m commit transaction
|
1246
|
+
undefined local variable or method `primary_key' for #<Comment:0x007f941b600750>
|
1247
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1248
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1249
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
|
1250
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1251
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1252
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1253
|
+
undefined local variable or method `primary_key' for #<Comment:0x007f941b4ba3f0>
|
1254
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1255
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1256
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
|
1257
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1258
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1259
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1260
|
+
undefined local variable or method `primary_key' for #<Comment:0x007f941b52d9b8>
|
1261
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1262
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1263
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
|
1264
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1265
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1266
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1267
|
+
undefined local variable or method `primary_key' for #<Comment:0x007f941b3cce98>
|
1268
|
+
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (102, 103, 104, 105) ORDER BY id ASC[0m
|
1269
|
+
Cache read_multi: ["Comment/102", "Comment/103", "Comment/104", "Comment/105"]
|
1270
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (102, 103, 104, 105) ORDER BY id ASC
|
1271
|
+
Cache write: Comment/102
|
1272
|
+
Cache write: Comment/103
|
1273
|
+
Cache write: Comment/104
|
1274
|
+
Cache write: Comment/105
|
1275
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1276
|
+
Cache read: Post/1
|
1277
|
+
Cache generate: Post/1
|
1278
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1279
|
+
Cache write: Post/1
|
1280
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1281
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1282
|
+
undefined local variable or method `primary_key' for #<Post:0x007f941b1917f0>
|
1283
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1284
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1285
|
+
Cache read: User/1
|
1286
|
+
Cache fetch_hit: User/1
|
1287
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1288
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00]]
|
1289
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:36:23 UTC +00:00], ["user_id", 24]]
|
1290
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 24 LIMIT 1
|
1291
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1292
|
+
undefined local variable or method `primary_key' for #<User:0x007f941b243db0>
|
1293
|
+
undefined local variable or method `primary_key' for #<Post:0x007f941b66c8b0>
|
1294
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1
|
1295
|
+
Cache read: User/24
|
1296
|
+
Cache generate: User/24
|
1297
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 24 LIMIT 1[0m
|
1298
|
+
Cache write: User/24
|
1299
|
+
Connecting to database specified by database.yml
|
1300
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1301
|
+
Cache read: Post/1
|
1302
|
+
Dalli::Server#connect localhost:11211
|
1303
|
+
Cache fetch_hit: Post/1
|
1304
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1305
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:12 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:12 UTC +00:00]]
|
1306
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1307
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1308
|
+
[1m[35m (3.0ms)[0m commit transaction
|
1309
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbebf0c9b28>
|
1310
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1311
|
+
Cache read: Post/1
|
1312
|
+
Cache generate: Post/1
|
1313
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1314
|
+
Cache write: Post/1
|
1315
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1316
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1317
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00]]
|
1318
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1319
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1320
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1321
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbebce7baa8>
|
1322
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1323
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1324
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00]]
|
1325
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1326
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1327
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1328
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbebf2f6478>
|
1329
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1330
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1331
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00]]
|
1332
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1333
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1334
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1335
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbebf546e80>
|
1336
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1337
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1338
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00]]
|
1339
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1340
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1341
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1342
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbebf211968>
|
1343
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (107, 108, 109, 110) ORDER BY id ASC[0m
|
1344
|
+
Cache read_multi: ["Comment/107", "Comment/108", "Comment/109", "Comment/110"]
|
1345
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (107, 108, 109, 110) ORDER BY id ASC
|
1346
|
+
Cache write: Comment/107
|
1347
|
+
Cache write: Comment/108
|
1348
|
+
Cache write: Comment/109
|
1349
|
+
Cache write: Comment/110
|
1350
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1351
|
+
Cache read: Post/1
|
1352
|
+
Cache generate: Post/1
|
1353
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1354
|
+
Cache write: Post/1
|
1355
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1356
|
+
[1m[35m (0.1ms)[0m commit transaction
|
1357
|
+
undefined local variable or method `primary_key' for #<Post:0x007fbebcd16eb0>
|
1358
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1359
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1360
|
+
Cache read: User/1
|
1361
|
+
Cache generate: User/1
|
1362
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1363
|
+
Cache write: User/1
|
1364
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1365
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00]]
|
1366
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:38:13 UTC +00:00], ["user_id", 25]]
|
1367
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 25 LIMIT 1[0m
|
1368
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1369
|
+
undefined local variable or method `primary_key' for #<User:0x007fbebf3e5a28>
|
1370
|
+
undefined local variable or method `primary_key' for #<Post:0x007fbebf3e89a8>
|
1371
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1[0m
|
1372
|
+
Cache read: User/25
|
1373
|
+
Cache generate: User/25
|
1374
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 25 LIMIT 1
|
1375
|
+
Cache write: User/25
|
1376
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
1377
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1378
|
+
Cache read: Post/user_id-1
|
1379
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1380
|
+
Connecting to database specified by database.yml
|
1381
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1382
|
+
Cache read: Post/1
|
1383
|
+
Dalli::Server#connect localhost:11211
|
1384
|
+
Cache fetch_hit: Post/1
|
1385
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1386
|
+
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
|
1387
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1388
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1389
|
+
[1m[35m (2.7ms)[0m commit transaction
|
1390
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fccb9202078>
|
1391
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1392
|
+
Cache read: Post/1
|
1393
|
+
Cache generate: Post/1
|
1394
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1395
|
+
Cache write: Post/1
|
1396
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1397
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1398
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
|
1399
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1400
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1401
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1402
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fccb8cc71f8>
|
1403
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1404
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1405
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
|
1406
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1407
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1408
|
+
[1m[35m (2.1ms)[0m commit transaction
|
1409
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fccb8dbadf8>
|
1410
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1411
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1412
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
|
1413
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1414
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1415
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1416
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fccb8cd55c8>
|
1417
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1418
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1419
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
|
1420
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1421
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1422
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1423
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fccb91bc870>
|
1424
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (112, 113, 114, 115) ORDER BY id ASC[0m
|
1425
|
+
Cache read_multi: ["Comment/112", "Comment/113", "Comment/114", "Comment/115"]
|
1426
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (112, 113, 114, 115) ORDER BY id ASC
|
1427
|
+
Cache write: Comment/112
|
1428
|
+
Cache write: Comment/113
|
1429
|
+
Cache write: Comment/114
|
1430
|
+
Cache write: Comment/115
|
1431
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1432
|
+
Cache read: Post/1
|
1433
|
+
Cache generate: Post/1
|
1434
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1435
|
+
Cache write: Post/1
|
1436
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1437
|
+
[1m[35m (0.1ms)[0m commit transaction
|
1438
|
+
undefined local variable or method `primary_key' for #<Post:0x007fccb90f8858>
|
1439
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1440
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1441
|
+
Cache read: User/1
|
1442
|
+
Cache generate: User/1
|
1443
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1444
|
+
Cache write: User/1
|
1445
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1446
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00]]
|
1447
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:38:57 UTC +00:00], ["user_id", 26]]
|
1448
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 26 LIMIT 1[0m
|
1449
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1450
|
+
undefined local variable or method `primary_key' for #<User:0x007fccb8b39930>
|
1451
|
+
undefined local variable or method `primary_key' for #<Post:0x007fccb94df278>
|
1452
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1[0m
|
1453
|
+
Cache read: User/26
|
1454
|
+
Cache generate: User/26
|
1455
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 26 LIMIT 1
|
1456
|
+
Cache write: User/26
|
1457
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
1458
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1459
|
+
Cache read: Post/user_id-1
|
1460
|
+
Connecting to database specified by database.yml
|
1461
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1462
|
+
Cache read: Post/1
|
1463
|
+
Dalli::Server#connect localhost:11211
|
1464
|
+
Cache fetch_hit: Post/1
|
1465
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1466
|
+
[1m[36mSQL (4.7ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
|
1467
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1468
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1469
|
+
[1m[35m (2.9ms)[0m commit transaction
|
1470
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbd7a457c40>
|
1471
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1472
|
+
Cache read: Post/1
|
1473
|
+
Cache generate: Post/1
|
1474
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1475
|
+
Cache write: Post/1
|
1476
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1477
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1478
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
|
1479
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1480
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1481
|
+
[1m[35m (1.8ms)[0m commit transaction
|
1482
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbd7a2e4a48>
|
1483
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1484
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1485
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
|
1486
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1487
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1488
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1489
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbd7a5cf370>
|
1490
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1491
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1492
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
|
1493
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1494
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1495
|
+
[1m[35m (1.9ms)[0m commit transaction
|
1496
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbd7a424f98>
|
1497
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1498
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1499
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?)[0m [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
|
1500
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1501
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1[0m
|
1502
|
+
[1m[35m (2.0ms)[0m commit transaction
|
1503
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fbd7a56ae98>
|
1504
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (117, 118, 119, 120) ORDER BY id ASC[0m
|
1505
|
+
Cache read_multi: ["Comment/117", "Comment/118", "Comment/119", "Comment/120"]
|
1506
|
+
[1m[35mComment Load (0.2ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (117, 118, 119, 120) ORDER BY id ASC
|
1507
|
+
Cache write: Comment/117
|
1508
|
+
Cache write: Comment/118
|
1509
|
+
Cache write: Comment/119
|
1510
|
+
Cache write: Comment/120
|
1511
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1512
|
+
Cache read: Post/1
|
1513
|
+
Cache generate: Post/1
|
1514
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1515
|
+
Cache write: Post/1
|
1516
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1517
|
+
[1m[35m (0.0ms)[0m commit transaction
|
1518
|
+
undefined local variable or method `primary_key' for #<Post:0x007fbd7a460fc0>
|
1519
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1520
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1521
|
+
Cache read: User/1
|
1522
|
+
Cache generate: User/1
|
1523
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1524
|
+
Cache write: User/1
|
1525
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1526
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00]]
|
1527
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:39:34 UTC +00:00], ["user_id", 27]]
|
1528
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 27 LIMIT 1[0m
|
1529
|
+
[1m[35m (1.5ms)[0m commit transaction
|
1530
|
+
undefined local variable or method `primary_key' for #<User:0x007fbd7a6cdba0>
|
1531
|
+
undefined local variable or method `primary_key' for #<Post:0x007fbd7a4738c8>
|
1532
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1[0m
|
1533
|
+
Cache read: User/27
|
1534
|
+
Cache generate: User/27
|
1535
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 27 LIMIT 1
|
1536
|
+
Cache write: User/27
|
1537
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" LIMIT 1[0m
|
1538
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1539
|
+
Cache read: Post/user_id-1
|
1540
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1541
|
+
Cache write: Post/user_id-1
|
1542
|
+
Cache write: Post/1
|
1543
|
+
Connecting to database specified by database.yml
|
1544
|
+
Dalli::Server#connect localhost:11211
|
1545
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1546
|
+
Cache read: Post/1
|
1547
|
+
Cache generate: Post/1
|
1548
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1549
|
+
Cache write: Post/1
|
1550
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1551
|
+
[1m[35mSQL (32.3ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
|
1552
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1553
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1554
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1555
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fa902b2d7b8>
|
1556
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1557
|
+
Cache read: Post/1
|
1558
|
+
Cache generate: Post/1
|
1559
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1560
|
+
Cache write: Post/1
|
1561
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1562
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1563
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
|
1564
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1565
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1566
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1567
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fa902f255a0>
|
1568
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1569
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1570
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
|
1571
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1572
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1573
|
+
[1m[36m (1.9ms)[0m [1mcommit transaction[0m
|
1574
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fa902e6f868>
|
1575
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1576
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1577
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
|
1578
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1579
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1580
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1581
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fa902e42048>
|
1582
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1583
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1584
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["post_id", 1], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
|
1585
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1586
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1587
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1588
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fa902dffa18>
|
1589
|
+
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (122, 123, 124, 125) ORDER BY id ASC
|
1590
|
+
Cache read_multi: ["Comment/122", "Comment/123", "Comment/124", "Comment/125"]
|
1591
|
+
[1m[36mComment Load (0.3ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (122, 123, 124, 125) ORDER BY id ASC[0m
|
1592
|
+
Cache write: Comment/122
|
1593
|
+
Cache write: Comment/123
|
1594
|
+
Cache write: Comment/124
|
1595
|
+
Cache write: Comment/125
|
1596
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1597
|
+
Cache read: Post/1
|
1598
|
+
Cache generate: Post/1
|
1599
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1600
|
+
Cache write: Post/1
|
1601
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1602
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1603
|
+
undefined local variable or method `primary_key' for #<Post:0x007fa902caf8c0>
|
1604
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1605
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1606
|
+
Cache read: User/1
|
1607
|
+
Cache generate: User/1
|
1608
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1609
|
+
Cache write: User/1
|
1610
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1611
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00]]
|
1612
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["title", nil], ["updated_at", Sat, 22 Sep 2012 23:54:31 UTC +00:00], ["user_id", 28]]
|
1613
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 28 LIMIT 1
|
1614
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
1615
|
+
undefined local variable or method `primary_key' for #<User:0x007fa902b6d408>
|
1616
|
+
undefined local variable or method `primary_key' for #<Post:0x007fa902b782e0>
|
1617
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1
|
1618
|
+
Cache read: User/28
|
1619
|
+
Cache generate: User/28
|
1620
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 28 LIMIT 1[0m
|
1621
|
+
Cache write: User/28
|
1622
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
1623
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|
1624
|
+
Cache read: Post/user_id-1
|
1625
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1
|
1626
|
+
Cache write: Post/user_id-1
|
1627
|
+
Cache write: Post/1
|
1628
|
+
Connecting to database specified by database.yml
|
1629
|
+
Dalli::Server#connect localhost:11211
|
1630
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" LIMIT 1[0m
|
1631
|
+
Cache read: Post/1
|
1632
|
+
Cache generate: Post/1
|
1633
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1634
|
+
Cache write: Post/1
|
1635
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1636
|
+
[1m[35mSQL (30.0ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test content for comment"], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
|
1637
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1638
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1639
|
+
[1m[36m (2.9ms)[0m [1mcommit transaction[0m
|
1640
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fa374a0f428>
|
1641
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1
|
1642
|
+
Cache read: Post/1
|
1643
|
+
Cache generate: Post/1
|
1644
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1645
|
+
Cache write: Post/1
|
1646
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1647
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1648
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 1 content for comment"], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
|
1649
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1650
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1651
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
1652
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fa374b8bbf8>
|
1653
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1654
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1655
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 2 content for comment"], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
|
1656
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1657
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1658
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1659
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fa374bd1d60>
|
1660
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1661
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1662
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 3 content for comment"], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
|
1663
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1664
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1665
|
+
[1m[36m (1.8ms)[0m [1mcommit transaction[0m
|
1666
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fa373560298>
|
1667
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1668
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1669
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "test 4 content for comment"], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["post_id", 1], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
|
1670
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1671
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "posts" SET "comments_count" = COALESCE("comments_count", 0) + 1 WHERE "posts"."id" = 1
|
1672
|
+
[1m[36m (2.4ms)[0m [1mcommit transaction[0m
|
1673
|
+
undefined local variable or method `primary_key' for #<Comment:0x007fa374976e80>
|
1674
|
+
[1m[35mComment Load (0.3ms)[0m SELECT "comments".* FROM "comments" WHERE "comments"."id" IN (127, 128, 129, 130) ORDER BY id ASC
|
1675
|
+
Cache read_multi: ["Comment/127", "Comment/128", "Comment/129", "Comment/130"]
|
1676
|
+
[1m[36mComment Load (0.2ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."id" IN (127, 128, 129, 130) ORDER BY id ASC[0m
|
1677
|
+
Cache write: Comment/127
|
1678
|
+
Cache write: Comment/128
|
1679
|
+
Cache write: Comment/129
|
1680
|
+
Cache write: Comment/130
|
1681
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1682
|
+
Cache read: Post/1
|
1683
|
+
Cache generate: Post/1
|
1684
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1[0m
|
1685
|
+
Cache write: Post/1
|
1686
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1687
|
+
[1m[36m (0.0ms)[0m [1mcommit transaction[0m
|
1688
|
+
undefined local variable or method `primary_key' for #<Post:0x007fa373755378>
|
1689
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" LIMIT 1
|
1690
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1[0m
|
1691
|
+
Cache read: User/1
|
1692
|
+
Cache generate: User/1
|
1693
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
1694
|
+
Cache write: User/1
|
1695
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1696
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "password", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["email", "test@videofork.com"], ["password", "test1234"], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00]]
|
1697
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "posts" ("body", "comments_count", "created_at", "title", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["body", nil], ["comments_count", nil], ["created_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["title", nil], ["updated_at", Sun, 23 Sep 2012 00:02:40 UTC +00:00], ["user_id", 29]]
|
1698
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 29 LIMIT 1
|
1699
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
1700
|
+
undefined local variable or method `primary_key' for #<User:0x007fa373499c60>
|
1701
|
+
undefined local variable or method `primary_key' for #<Post:0x007fa3733fa6b0>
|
1702
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1
|
1703
|
+
Cache read: User/29
|
1704
|
+
Cache generate: User/29
|
1705
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 29 LIMIT 1[0m
|
1706
|
+
Cache write: User/29
|
1707
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" LIMIT 1
|
1708
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."user_id" = 1 LIMIT 1[0m
|