active_reporter 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_reporter/report/validation.rb +4 -0
- data/lib/active_reporter/tracker/value.rb +1 -1
- data/lib/active_reporter/version.rb +1 -1
- data/spec/dummy/log/test.log +1257 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 760b641c323ac15a10767901f91776f8060353366c74e00333a29f76c43a622f
|
4
|
+
data.tar.gz: 12e2c7902056ec37e07a72c11d16261390c2aa8e56e1b7395d000d24b2617de8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94f9875a81ab72172e200920213ca1de4f307f6879dc7163101d7399c5ea0cb3ba80b4b724c4c3b62b0d32daee75fe11a43a68a72d00ed1aa787a43fb3c8e6b4
|
7
|
+
data.tar.gz: 80d2ee5dc68fe12fc1239bab3305aa4c15ddccbb57daf74183e9e95bb05db7754b3045f927cf5eb2d673c113df1f3b6cd5d5c4b3412dd44cc9404ec891575e64
|
@@ -57,6 +57,10 @@ module ActiveReporter
|
|
57
57
|
elsif aggregators.exclude?(tracker.aggregator)
|
58
58
|
add_invalid_param_error(:tracker, ":#{tracker.name} defines an invalid aggregator :#{tracker.aggregator} (should be in #{self.class.aggregators.keys})")
|
59
59
|
end
|
60
|
+
|
61
|
+
if tracker.prior_aggregator.present? && aggregators.exclude?(tracker.prior_aggregator)
|
62
|
+
add_invalid_param_error(:tracker, ":#{tracker.name} defines an invalid prior aggregator :#{tracker.prior_aggregator} (should be in #{self.class.aggregators.keys})")
|
63
|
+
end
|
60
64
|
end
|
61
65
|
end
|
62
66
|
|
data/spec/dummy/log/test.log
CHANGED
@@ -97097,3 +97097,1260 @@
|
|
97097
97097
|
END
|
97098
97098
|
) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
97099
97099
|
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
97100
|
+
[1m[35m (9.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
97101
|
+
[1m[35m (17.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
97102
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
97103
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
97104
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97105
|
+
[1m[36mAuthor Create (6.1ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.789450"], ["updated_at", "2021-04-07 02:31:30.789450"], ["name", "James Joyce"]]
|
97106
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97107
|
+
[1m[36mAuthor Load (1.8ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97108
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97109
|
+
[1m[36mPost Create (5.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.841508"], ["updated_at", "2021-04-07 02:31:30.841508"], ["author_id", 3056], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
97110
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97111
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97112
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97113
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.850119"], ["updated_at", "2021-04-07 02:31:30.850119"], ["author_id", 3056], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
97114
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97115
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97116
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97117
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.852484"], ["updated_at", "2021-04-07 02:31:30.852484"], ["author_id", 3056], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
97118
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97119
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97120
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97121
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.854828"], ["updated_at", "2021-04-07 02:31:30.854828"], ["author_id", 3056], ["status", 2], ["likes", 3]]
|
97122
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97123
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97124
|
+
[1m[36mAuthor Create (0.2ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.856778"], ["updated_at", "2021-04-07 02:31:30.856778"], ["name", "Virginia Woolf"]]
|
97125
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97126
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
97127
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97128
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.858850"], ["updated_at", "2021-04-07 02:31:30.858850"], ["author_id", 3057], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
97129
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97130
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
97131
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97132
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.861361"], ["updated_at", "2021-04-07 02:31:30.861361"], ["author_id", 3057], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
97133
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97134
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
97135
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97136
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.863619"], ["updated_at", "2021-04-07 02:31:30.863619"], ["author_id", 3057], ["status", 2], ["likes", 3]]
|
97137
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97138
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97139
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.865510"], ["updated_at", "2021-04-07 02:31:30.865510"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
97140
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97141
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97142
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:30.867208"], ["updated_at", "2021-04-07 02:31:30.867208"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
97143
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97144
|
+
[1m[36mPost Load (35.4ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
97145
|
+
[1m[35m (18.0ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
97146
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
97147
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97148
|
+
[1m[36mPost Load (42.6ms)[0m [1m[34mSELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
|
97149
|
+
SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text UNION
|
97150
|
+
SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97151
|
+
SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text
|
97152
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
97153
|
+
CASE
|
97154
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
|
97155
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
97156
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
97157
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
97158
|
+
END
|
97159
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
97160
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
97161
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
97162
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97163
|
+
[1m[36mPost Load (3.4ms)[0m [1m[34mSELECT _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
|
97164
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
97165
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text UNION
|
97166
|
+
SELECT 3.0 AS min, 4.0 AS max, CAST('3.0,4.0' AS text) AS bin_text
|
97167
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
97168
|
+
CASE
|
97169
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL AND _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes IS NULL)
|
97170
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
97171
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
97172
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
97173
|
+
END
|
97174
|
+
) GROUP BY _active_reporter_dimension_likes[0m
|
97175
|
+
[1m[35m (1.8ms)[0m [1m[31mROLLBACK[0m
|
97176
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
97177
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97178
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.028698"], ["updated_at", "2021-04-07 02:31:31.028698"], ["name", "James Joyce"]]
|
97179
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97180
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97181
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97182
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.032999"], ["updated_at", "2021-04-07 02:31:31.032999"], ["author_id", 3058], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
97183
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97184
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97185
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97186
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.036542"], ["updated_at", "2021-04-07 02:31:31.036542"], ["author_id", 3058], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
97187
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97188
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97189
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97190
|
+
[1m[36mPost Create (0.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.040574"], ["updated_at", "2021-04-07 02:31:31.040574"], ["author_id", 3058], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
97191
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97192
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97193
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97194
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.044250"], ["updated_at", "2021-04-07 02:31:31.044250"], ["author_id", 3058], ["status", 2], ["likes", 3]]
|
97195
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97196
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97197
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.047509"], ["updated_at", "2021-04-07 02:31:31.047509"], ["name", "Virginia Woolf"]]
|
97198
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97199
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
97200
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97201
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.050454"], ["updated_at", "2021-04-07 02:31:31.050454"], ["author_id", 3059], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
97202
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97203
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
97204
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97205
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.054150"], ["updated_at", "2021-04-07 02:31:31.054150"], ["author_id", 3059], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
97206
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97207
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
97208
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97209
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.056977"], ["updated_at", "2021-04-07 02:31:31.056977"], ["author_id", 3059], ["status", 2], ["likes", 3]]
|
97210
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97211
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97212
|
+
[1m[36mPost Create (1.1ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.060179"], ["updated_at", "2021-04-07 02:31:31.060179"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
97213
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97214
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97215
|
+
[1m[36mPost Create (1.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.062771"], ["updated_at", "2021-04-07 02:31:31.062771"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
97216
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97217
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
97218
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
97219
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97220
|
+
[1m[36mPost Load (1.4ms)[0m [1m[34mSELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
97221
|
+
SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text UNION
|
97222
|
+
SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97223
|
+
SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text
|
97224
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
97225
|
+
CASE
|
97226
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
|
97227
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
97228
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
97229
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
97230
|
+
END
|
97231
|
+
) GROUP BY _active_reporter_dimension_published_at, _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
97232
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
97233
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
97234
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97235
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.094405"], ["updated_at", "2021-04-07 02:31:31.094405"], ["name", "James Joyce"]]
|
97236
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97237
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97238
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97239
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.097000"], ["updated_at", "2021-04-07 02:31:31.097000"], ["author_id", 3060], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
97240
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97241
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97242
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97243
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.099287"], ["updated_at", "2021-04-07 02:31:31.099287"], ["author_id", 3060], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
97244
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97245
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97246
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97247
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.101887"], ["updated_at", "2021-04-07 02:31:31.101887"], ["author_id", 3060], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
97248
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97249
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
97250
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97251
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.104317"], ["updated_at", "2021-04-07 02:31:31.104317"], ["author_id", 3060], ["status", 2], ["likes", 3]]
|
97252
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97253
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97254
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.106278"], ["updated_at", "2021-04-07 02:31:31.106278"], ["name", "Virginia Woolf"]]
|
97255
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97256
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
97257
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97258
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.108535"], ["updated_at", "2021-04-07 02:31:31.108535"], ["author_id", 3061], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
97259
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97260
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
97261
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97262
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.110940"], ["updated_at", "2021-04-07 02:31:31.110940"], ["author_id", 3061], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
97263
|
+
[1m[35m (2.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97264
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
97265
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97266
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.116517"], ["updated_at", "2021-04-07 02:31:31.116517"], ["author_id", 3061], ["status", 2], ["likes", 3]]
|
97267
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97268
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97269
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.119124"], ["updated_at", "2021-04-07 02:31:31.119124"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
97270
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97271
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97272
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.120880"], ["updated_at", "2021-04-07 02:31:31.120880"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
97273
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97274
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author DESC NULLS LAST[0m
|
97275
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
97276
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
97277
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97278
|
+
[1m[36mPost Load (0.9ms)[0m [1m[34mSELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
|
97279
|
+
SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97280
|
+
SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97281
|
+
SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text
|
97282
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
97283
|
+
CASE
|
97284
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
|
97285
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
97286
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
97287
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
97288
|
+
END
|
97289
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
97290
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS LAST[0m
|
97291
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author DESC NULLS FIRST[0m
|
97292
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
97293
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
97294
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97295
|
+
[1m[36mPost Load (1.1ms)[0m [1m[34mSELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
|
97296
|
+
SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97297
|
+
SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97298
|
+
SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text
|
97299
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
97300
|
+
CASE
|
97301
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
|
97302
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
97303
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
97304
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
97305
|
+
END
|
97306
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
97307
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
97308
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
97309
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97310
|
+
[1m[36mPost Load (1.4ms)[0m [1m[34mSELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
|
97311
|
+
SELECT CAST(NULL AS timestamp with time zone) AS min, CAST(NULL AS timestamp with time zone) AS max, CAST(',' AS text) AS bin_text UNION
|
97312
|
+
SELECT CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-12-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-11-01 00:00:00 UTC,2015-12-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97313
|
+
SELECT CAST('2015-10-01 00:00:00' AS timestamp with time zone) AS min, CAST('2015-11-01 00:00:00' AS timestamp with time zone) AS max, CAST('2015-10-01 00:00:00 UTC,2015-11-01 00:00:00 UTC' AS text) AS bin_text
|
97314
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
97315
|
+
CASE
|
97316
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL AND _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at IS NULL)
|
97317
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
97318
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
97319
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
97320
|
+
END
|
97321
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
97322
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
97323
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
97324
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97325
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97326
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.165689"], ["updated_at", "2021-04-07 02:31:31.165689"], ["name", "Alice"]]
|
97327
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97328
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97329
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.167334"], ["updated_at", "2021-04-07 02:31:31.167334"], ["author_id", 3062], ["status", 2], ["likes", 3]]
|
97330
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97331
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97332
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97333
|
+
[1m[36mPost Create (1.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.169736"], ["updated_at", "2021-04-07 02:31:31.169736"], ["author_id", 3062], ["status", 2], ["likes", 2]]
|
97334
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97335
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97336
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97337
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.173962"], ["updated_at", "2021-04-07 02:31:31.173962"], ["name", "Bob"]]
|
97338
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97339
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97340
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.175496"], ["updated_at", "2021-04-07 02:31:31.175496"], ["author_id", 3063], ["status", 2], ["likes", 4]]
|
97341
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97342
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97343
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97344
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.177880"], ["updated_at", "2021-04-07 02:31:31.177880"], ["author_id", 3063], ["status", 2], ["likes", 1]]
|
97345
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97346
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97347
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97348
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.180327"], ["updated_at", "2021-04-07 02:31:31.180327"], ["author_id", 3063], ["status", 2], ["likes", 5]]
|
97349
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97350
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
97351
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97352
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.183105"], ["updated_at", "2021-04-07 02:31:31.183105"], ["name", "Chester"]]
|
97353
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97354
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97355
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.184702"], ["updated_at", "2021-04-07 02:31:31.184702"], ["author_id", 3064], ["status", 2], ["likes", 10]]
|
97356
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97357
|
+
[1m[36mPost Load (2.2ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, ARRAY_AGG(posts.id) AS _report_aggregator_post_ids FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
97358
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
97359
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
97360
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97361
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97362
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.193205"], ["updated_at", "2021-04-07 02:31:31.193205"], ["name", "Alice"]]
|
97363
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97364
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97365
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.194932"], ["updated_at", "2021-04-07 02:31:31.194932"], ["author_id", 3065], ["status", 2], ["likes", 3]]
|
97366
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97367
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97368
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97369
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.197775"], ["updated_at", "2021-04-07 02:31:31.197775"], ["author_id", 3065], ["status", 2], ["likes", 2]]
|
97370
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97371
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97372
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97373
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.200757"], ["updated_at", "2021-04-07 02:31:31.200757"], ["name", "Bob"]]
|
97374
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97375
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97376
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.202313"], ["updated_at", "2021-04-07 02:31:31.202313"], ["author_id", 3066], ["status", 2], ["likes", 4]]
|
97377
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97378
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97379
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97380
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.204709"], ["updated_at", "2021-04-07 02:31:31.204709"], ["author_id", 3066], ["status", 2], ["likes", 1]]
|
97381
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97382
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97383
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97384
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.206966"], ["updated_at", "2021-04-07 02:31:31.206966"], ["author_id", 3066], ["status", 2], ["likes", 5]]
|
97385
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97386
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
97387
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97388
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.209489"], ["updated_at", "2021-04-07 02:31:31.209489"], ["name", "Chester"]]
|
97389
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97390
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97391
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.211235"], ["updated_at", "2021-04-07 02:31:31.211235"], ["author_id", 3067], ["status", 2], ["likes", 10]]
|
97392
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97393
|
+
[1m[36mPost Load (0.8ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
97394
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
97395
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
97396
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97397
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97398
|
+
[1m[36mAuthor Create (1.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.219994"], ["updated_at", "2021-04-07 02:31:31.219994"], ["name", "Alice"]]
|
97399
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97400
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97401
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.223838"], ["updated_at", "2021-04-07 02:31:31.223838"], ["author_id", 3068], ["status", 2], ["likes", 3]]
|
97402
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97403
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97404
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97405
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.226728"], ["updated_at", "2021-04-07 02:31:31.226728"], ["author_id", 3068], ["status", 2], ["likes", 2]]
|
97406
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97407
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97408
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97409
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.229257"], ["updated_at", "2021-04-07 02:31:31.229257"], ["name", "Bob"]]
|
97410
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97411
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97412
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.230760"], ["updated_at", "2021-04-07 02:31:31.230760"], ["author_id", 3069], ["status", 2], ["likes", 4]]
|
97413
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97414
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97415
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97416
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.233142"], ["updated_at", "2021-04-07 02:31:31.233142"], ["author_id", 3069], ["status", 2], ["likes", 1]]
|
97417
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97418
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97419
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97420
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.235394"], ["updated_at", "2021-04-07 02:31:31.235394"], ["author_id", 3069], ["status", 2], ["likes", 5]]
|
97421
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97422
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
97423
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97424
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.237793"], ["updated_at", "2021-04-07 02:31:31.237793"], ["name", "Chester"]]
|
97425
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97426
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97427
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.239187"], ["updated_at", "2021-04-07 02:31:31.239187"], ["author_id", 3070], ["status", 2], ["likes", 10]]
|
97428
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97429
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, MIN(posts.likes) AS _report_aggregator_min_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
97430
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97431
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97432
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97433
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97434
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.245077"], ["updated_at", "2021-04-07 02:31:31.245077"], ["name", "Alice"]]
|
97435
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97436
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97437
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.246620"], ["updated_at", "2021-04-07 02:31:31.246620"], ["author_id", 3071], ["status", 2], ["likes", 3]]
|
97438
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97439
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97440
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97441
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.248876"], ["updated_at", "2021-04-07 02:31:31.248876"], ["author_id", 3071], ["status", 2], ["likes", 2]]
|
97442
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97443
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97444
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97445
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.251101"], ["updated_at", "2021-04-07 02:31:31.251101"], ["name", "Bob"]]
|
97446
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97447
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97448
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.252566"], ["updated_at", "2021-04-07 02:31:31.252566"], ["author_id", 3072], ["status", 2], ["likes", 4]]
|
97449
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97450
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97451
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97452
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.254844"], ["updated_at", "2021-04-07 02:31:31.254844"], ["author_id", 3072], ["status", 2], ["likes", 1]]
|
97453
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97454
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97455
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97456
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.257198"], ["updated_at", "2021-04-07 02:31:31.257198"], ["author_id", 3072], ["status", 2], ["likes", 5]]
|
97457
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97458
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
97459
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97460
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.259548"], ["updated_at", "2021-04-07 02:31:31.259548"], ["name", "Chester"]]
|
97461
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97462
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97463
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.261153"], ["updated_at", "2021-04-07 02:31:31.261153"], ["author_id", 3073], ["status", 2], ["likes", 10]]
|
97464
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97465
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, AVG(posts.likes) AS _report_aggregator_mean_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
97466
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97467
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97468
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97469
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97470
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.267254"], ["updated_at", "2021-04-07 02:31:31.267254"], ["name", "Alice"]]
|
97471
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97472
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97473
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.268718"], ["updated_at", "2021-04-07 02:31:31.268718"], ["author_id", 3074], ["status", 2], ["likes", 3]]
|
97474
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97475
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97476
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97477
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.270994"], ["updated_at", "2021-04-07 02:31:31.270994"], ["author_id", 3074], ["status", 2], ["likes", 2]]
|
97478
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97479
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97480
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97481
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.273171"], ["updated_at", "2021-04-07 02:31:31.273171"], ["name", "Bob"]]
|
97482
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97483
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97484
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.274450"], ["updated_at", "2021-04-07 02:31:31.274450"], ["author_id", 3075], ["status", 2], ["likes", 4]]
|
97485
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97486
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97487
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97488
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.276548"], ["updated_at", "2021-04-07 02:31:31.276548"], ["author_id", 3075], ["status", 2], ["likes", 1]]
|
97489
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97490
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97491
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97492
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.279013"], ["updated_at", "2021-04-07 02:31:31.279013"], ["author_id", 3075], ["status", 2], ["likes", 5]]
|
97493
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97494
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
97495
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97496
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.281594"], ["updated_at", "2021-04-07 02:31:31.281594"], ["name", "Chester"]]
|
97497
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97498
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97499
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.283025"], ["updated_at", "2021-04-07 02:31:31.283025"], ["author_id", 3076], ["status", 2], ["likes", 10]]
|
97500
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97501
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, SUM(posts.likes) AS _report_aggregator_total_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
97502
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97503
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
97504
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97505
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97506
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.289169"], ["updated_at", "2021-04-07 02:31:31.289169"], ["name", "Alice"]]
|
97507
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97508
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97509
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.290668"], ["updated_at", "2021-04-07 02:31:31.290668"], ["author_id", 3077], ["status", 2], ["likes", 3]]
|
97510
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97511
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97512
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97513
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.292931"], ["updated_at", "2021-04-07 02:31:31.292931"], ["author_id", 3077], ["status", 2], ["likes", 2]]
|
97514
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97515
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97516
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97517
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.295399"], ["updated_at", "2021-04-07 02:31:31.295399"], ["name", "Bob"]]
|
97518
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97519
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97520
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.297083"], ["updated_at", "2021-04-07 02:31:31.297083"], ["author_id", 3078], ["status", 2], ["likes", 4]]
|
97521
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97522
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97523
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97524
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.299925"], ["updated_at", "2021-04-07 02:31:31.299925"], ["author_id", 3078], ["status", 2], ["likes", 1]]
|
97525
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97526
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97527
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97528
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.302607"], ["updated_at", "2021-04-07 02:31:31.302607"], ["author_id", 3078], ["status", 2], ["likes", 5]]
|
97529
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97530
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
97531
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97532
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.304898"], ["updated_at", "2021-04-07 02:31:31.304898"], ["name", "Chester"]]
|
97533
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97534
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97535
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.306219"], ["updated_at", "2021-04-07 02:31:31.306219"], ["author_id", 3079], ["status", 2], ["likes", 10]]
|
97536
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97537
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, COUNT(DISTINCT posts.id) AS _report_aggregator_count FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
97538
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97539
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97540
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97541
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97542
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97543
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97544
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97545
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97546
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97547
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97548
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97549
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97550
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97551
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97552
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97553
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97554
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97555
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97556
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97557
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97558
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97559
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97560
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97561
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97562
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97563
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97564
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97565
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97566
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97567
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97568
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97569
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97570
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97571
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97572
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97573
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97574
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97575
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97576
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97577
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97578
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
97579
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
97580
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97581
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.336028"], ["updated_at", "2021-04-07 02:31:31.336028"], ["status", 2], ["likes", 3]]
|
97582
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97583
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97584
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.338062"], ["updated_at", "2021-04-07 02:31:31.338062"], ["status", 2], ["likes", 10]]
|
97585
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97586
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97587
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.339726"], ["updated_at", "2021-04-07 02:31:31.339726"], ["status", 2], ["likes", 1]]
|
97588
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97589
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
97590
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
97591
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97592
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97593
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97594
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
97595
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97596
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.356703"], ["updated_at", "2021-04-07 02:31:31.356703"], ["status", 2], ["likes", 2]]
|
97597
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97598
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
97599
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97600
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97601
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97602
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97603
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97604
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97605
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97606
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.363681"], ["updated_at", "2021-04-07 02:31:31.363681"], ["name", "Alice"]]
|
97607
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97608
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97609
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.365312"], ["updated_at", "2021-04-07 02:31:31.365312"], ["author_id", 3080], ["status", 2]]
|
97610
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97611
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97612
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97613
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.367848"], ["updated_at", "2021-04-07 02:31:31.367848"], ["name", "Bob"]]
|
97614
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97615
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97616
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.369218"], ["updated_at", "2021-04-07 02:31:31.369218"], ["author_id", 3081], ["status", 2]]
|
97617
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97618
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97619
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.370724"], ["updated_at", "2021-04-07 02:31:31.370724"], ["status", 2]]
|
97620
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97621
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice'))[0m
|
97622
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IS NULL OR authors.name IN (NULL))[0m
|
97623
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IS NULL OR authors.name IN ('Alice'))[0m
|
97624
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice','Bob'))[0m
|
97625
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN (NULL))[0m
|
97626
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97627
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97628
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97629
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97630
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.378874"], ["updated_at", "2021-04-07 02:31:31.378874"], ["name", "Alice"]]
|
97631
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97632
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97633
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.380416"], ["updated_at", "2021-04-07 02:31:31.380416"], ["author_id", 3082], ["status", 2]]
|
97634
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97635
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
97636
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97637
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.382669"], ["updated_at", "2021-04-07 02:31:31.382669"], ["author_id", 3082], ["status", 2]]
|
97638
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97639
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97640
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.384234"], ["updated_at", "2021-04-07 02:31:31.384234"], ["status", 2]]
|
97641
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97642
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97643
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97644
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.386503"], ["updated_at", "2021-04-07 02:31:31.386503"], ["name", "Bob"]]
|
97645
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97646
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97647
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.387804"], ["updated_at", "2021-04-07 02:31:31.387804"], ["author_id", 3083], ["status", 2]]
|
97648
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97649
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97650
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97651
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.389908"], ["updated_at", "2021-04-07 02:31:31.389908"], ["author_id", 3083], ["status", 2]]
|
97652
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97653
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
97654
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97655
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.392348"], ["updated_at", "2021-04-07 02:31:31.392348"], ["author_id", 3083], ["status", 2]]
|
97656
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97657
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(*) AS count FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
97658
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97659
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97660
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97661
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97662
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97663
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97664
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97665
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97666
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97667
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97668
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97669
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97670
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97671
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97672
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97673
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97674
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97675
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97676
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97677
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97678
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97679
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97680
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97681
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97682
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97683
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97684
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97685
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97686
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97687
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97688
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97689
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97690
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97691
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97692
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97693
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97694
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97695
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97696
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97697
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97698
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97699
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97700
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
97701
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97702
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97703
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97704
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.432736"], ["updated_at", "2021-04-07 02:31:31.432736"], ["name", "Tammy"]]
|
97705
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97706
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97707
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2019-12-18 00:00:00"], ["updated_at", "2021-04-07 02:31:31.434131"], ["author_id", 3084], ["status", 2], ["likes", 23]]
|
97708
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97709
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97710
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97711
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.436456"], ["author_id", 3084], ["status", 2], ["likes", 7]]
|
97712
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97713
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97714
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97715
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-07 02:31:31.438517"], ["author_id", 3084], ["status", 2], ["likes", 4]]
|
97716
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97717
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97718
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97719
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-07 02:31:31.440683"], ["author_id", 3084], ["status", 2], ["likes", 11]]
|
97720
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97721
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97722
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97723
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.442935"], ["updated_at", "2021-04-07 02:31:31.442935"], ["name", "Timmy"]]
|
97724
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97725
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97726
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-07 02:31:31.444390"], ["author_id", 3085], ["status", 2], ["likes", 3]]
|
97727
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97728
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97729
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97730
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-02-27 00:00:00"], ["updated_at", "2021-04-07 02:31:31.446739"], ["author_id", 3085], ["status", 2], ["likes", 24]]
|
97731
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97732
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97733
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97734
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-07 02:31:31.449080"], ["author_id", 3085], ["status", 2]]
|
97735
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97736
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97737
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97738
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.451181"], ["author_id", 3085], ["status", 2], ["likes", 19]]
|
97739
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97740
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97741
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97742
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-04-08 00:00:00"], ["updated_at", "2021-04-07 02:31:31.453165"], ["author_id", 3085], ["status", 2], ["likes", 8]]
|
97743
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97744
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')[0m
|
97745
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97746
|
+
[1m[36mPost Load (1.0ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
97747
|
+
SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97748
|
+
SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97749
|
+
SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97750
|
+
SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
|
97751
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
97752
|
+
CASE
|
97753
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
|
97754
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
97755
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
97756
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
97757
|
+
END
|
97758
|
+
) WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
97759
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
97760
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97761
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97762
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97763
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.467967"], ["updated_at", "2021-04-07 02:31:31.467967"], ["name", "Tammy"]]
|
97764
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97765
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97766
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2019-12-18 00:00:00"], ["updated_at", "2021-04-07 02:31:31.470307"], ["author_id", 3086], ["status", 2], ["likes", 23]]
|
97767
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97768
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97769
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97770
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.473652"], ["author_id", 3086], ["status", 2], ["likes", 7]]
|
97771
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97772
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97773
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97774
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-07 02:31:31.480308"], ["author_id", 3086], ["status", 2], ["likes", 4]]
|
97775
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97776
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97777
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97778
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-07 02:31:31.483274"], ["author_id", 3086], ["status", 2], ["likes", 11]]
|
97779
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97780
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97781
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97782
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.485910"], ["updated_at", "2021-04-07 02:31:31.485910"], ["name", "Timmy"]]
|
97783
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97784
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97785
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-07 02:31:31.487384"], ["author_id", 3087], ["status", 2], ["likes", 3]]
|
97786
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97787
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97788
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97789
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-02-27 00:00:00"], ["updated_at", "2021-04-07 02:31:31.489776"], ["author_id", 3087], ["status", 2], ["likes", 24]]
|
97790
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97791
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97792
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97793
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-07 02:31:31.492065"], ["author_id", 3087], ["status", 2]]
|
97794
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97795
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97796
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97797
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.494517"], ["author_id", 3087], ["status", 2], ["likes", 19]]
|
97798
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97799
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97800
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97801
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-04-08 00:00:00"], ["updated_at", "2021-04-07 02:31:31.496823"], ["author_id", 3087], ["status", 2], ["likes", 8]]
|
97802
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97803
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')[0m
|
97804
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97805
|
+
[1m[36mPost Load (1.1ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
97806
|
+
SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97807
|
+
SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97808
|
+
SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97809
|
+
SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
|
97810
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
97811
|
+
CASE
|
97812
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
|
97813
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
97814
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
97815
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
97816
|
+
END
|
97817
|
+
) WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
97818
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
97819
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
97820
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97821
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97822
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.517307"], ["updated_at", "2021-04-07 02:31:31.517307"], ["name", "Tammy"]]
|
97823
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97824
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97825
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2019-12-18 00:00:00"], ["updated_at", "2021-04-07 02:31:31.518946"], ["author_id", 3088], ["status", 2], ["likes", 23]]
|
97826
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97827
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97828
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97829
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.521359"], ["author_id", 3088], ["status", 2], ["likes", 7]]
|
97830
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97831
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97832
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97833
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-07 02:31:31.523739"], ["author_id", 3088], ["status", 2], ["likes", 4]]
|
97834
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97835
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97836
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97837
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-07 02:31:31.526137"], ["author_id", 3088], ["status", 2], ["likes", 11]]
|
97838
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97839
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97840
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97841
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.528526"], ["updated_at", "2021-04-07 02:31:31.528526"], ["name", "Timmy"]]
|
97842
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97843
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97844
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-07 02:31:31.529922"], ["author_id", 3089], ["status", 2], ["likes", 3]]
|
97845
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97846
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97847
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97848
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-02-27 00:00:00"], ["updated_at", "2021-04-07 02:31:31.532125"], ["author_id", 3089], ["status", 2], ["likes", 24]]
|
97849
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97850
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97851
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97852
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-07 02:31:31.534436"], ["author_id", 3089], ["status", 2]]
|
97853
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97854
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97855
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97856
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.536583"], ["author_id", 3089], ["status", 2], ["likes", 19]]
|
97857
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97858
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97859
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97860
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-04-08 00:00:00"], ["updated_at", "2021-04-07 02:31:31.538613"], ["author_id", 3089], ["status", 2], ["likes", 8]]
|
97861
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97862
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')[0m
|
97863
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97864
|
+
[1m[36mPost Load (1.0ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
97865
|
+
SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97866
|
+
SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97867
|
+
SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97868
|
+
SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
|
97869
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
97870
|
+
CASE
|
97871
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
|
97872
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
97873
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
97874
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
97875
|
+
END
|
97876
|
+
) WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
97877
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
97878
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97879
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97880
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97881
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.554047"], ["updated_at", "2021-04-07 02:31:31.554047"], ["name", "Tammy"]]
|
97882
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97883
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97884
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2019-12-18 00:00:00"], ["updated_at", "2021-04-07 02:31:31.555531"], ["author_id", 3090], ["status", 2], ["likes", 23]]
|
97885
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97886
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97887
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97888
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.557724"], ["author_id", 3090], ["status", 2], ["likes", 7]]
|
97889
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97890
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97891
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97892
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-07 02:31:31.560085"], ["author_id", 3090], ["status", 2], ["likes", 4]]
|
97893
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97894
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97895
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97896
|
+
[1m[36mPost Create (3.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-07 02:31:31.562722"], ["author_id", 3090], ["status", 2], ["likes", 11]]
|
97897
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97898
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97899
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97900
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.568439"], ["updated_at", "2021-04-07 02:31:31.568439"], ["name", "Timmy"]]
|
97901
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97902
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97903
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-07 02:31:31.569932"], ["author_id", 3091], ["status", 2], ["likes", 3]]
|
97904
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97905
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97906
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97907
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-02-27 00:00:00"], ["updated_at", "2021-04-07 02:31:31.572289"], ["author_id", 3091], ["status", 2], ["likes", 24]]
|
97908
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97909
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97910
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97911
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-07 02:31:31.574527"], ["author_id", 3091], ["status", 2]]
|
97912
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97913
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97914
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97915
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.576793"], ["author_id", 3091], ["status", 2], ["likes", 19]]
|
97916
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97917
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97918
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97919
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-04-08 00:00:00"], ["updated_at", "2021-04-07 02:31:31.578972"], ["author_id", 3091], ["status", 2], ["likes", 8]]
|
97920
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97921
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')[0m
|
97922
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97923
|
+
[1m[36mPost Load (1.1ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
97924
|
+
SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97925
|
+
SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97926
|
+
SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
97927
|
+
SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
|
97928
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
97929
|
+
CASE
|
97930
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
|
97931
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
97932
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
97933
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
97934
|
+
END
|
97935
|
+
) WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
97936
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
97937
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
97938
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
97939
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97940
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97941
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97942
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.600005"], ["updated_at", "2021-04-07 02:31:31.600005"], ["name", "Tammy"]]
|
97943
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97944
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97945
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2019-12-18 00:00:00"], ["updated_at", "2021-04-07 02:31:31.601601"], ["author_id", 3092], ["status", 2], ["likes", 23]]
|
97946
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97947
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97948
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97949
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.604006"], ["author_id", 3092], ["status", 2], ["likes", 7]]
|
97950
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97951
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97952
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97953
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-07 02:31:31.606220"], ["author_id", 3092], ["status", 2], ["likes", 4]]
|
97954
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97955
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
97956
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97957
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-07 02:31:31.608394"], ["author_id", 3092], ["status", 2], ["likes", 11]]
|
97958
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97959
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97960
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97961
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.610592"], ["updated_at", "2021-04-07 02:31:31.610592"], ["name", "Timmy"]]
|
97962
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97963
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97964
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-07 02:31:31.611868"], ["author_id", 3093], ["status", 2], ["likes", 3]]
|
97965
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97966
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97967
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97968
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-02-27 00:00:00"], ["updated_at", "2021-04-07 02:31:31.614137"], ["author_id", 3093], ["status", 2], ["likes", 24]]
|
97969
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97970
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97971
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97972
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-07 02:31:31.616249"], ["author_id", 3093], ["status", 2]]
|
97973
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97974
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97975
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97976
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.618400"], ["author_id", 3093], ["status", 2], ["likes", 19]]
|
97977
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97978
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
97979
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
97980
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-04-08 00:00:00"], ["updated_at", "2021-04-07 02:31:31.620455"], ["author_id", 3093], ["status", 2], ["likes", 8]]
|
97981
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
97982
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')[0m
|
97983
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97984
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE ((posts.created_at >= '2019-12-01 00:00:00' AND posts.created_at < '2020-01-01 00:00:00')) AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
97985
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
97986
|
+
SELECT CAST('2019-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-12-01 00:00:00 UTC,2020-01-01 00:00:00 UTC' AS text) AS bin_text
|
97987
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
97988
|
+
CASE
|
97989
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
|
97990
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
97991
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
97992
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
97993
|
+
END
|
97994
|
+
) WHERE ((posts.created_at >= '2019-12-01 00:00:00' AND posts.created_at < '2020-01-01 00:00:00')) GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 1]]
|
97995
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
97996
|
+
SELECT CAST('2019-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-12-01 00:00:00 UTC,2020-01-01 00:00:00 UTC' AS text) AS bin_text
|
97997
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
97998
|
+
CASE
|
97999
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
|
98000
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
98001
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
98002
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
98003
|
+
END
|
98004
|
+
) WHERE ((posts.created_at >= '2019-12-01 00:00:00' AND posts.created_at < '2020-01-01 00:00:00')) GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
98005
|
+
[1m[36mPost Load (1.1ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
98006
|
+
SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
98007
|
+
SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
98008
|
+
SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
98009
|
+
SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
|
98010
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
98011
|
+
CASE
|
98012
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
|
98013
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
98014
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
98015
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
98016
|
+
END
|
98017
|
+
) WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
98018
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98019
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98020
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98021
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98022
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98023
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98024
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98025
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98026
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
98027
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98028
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.649160"], ["updated_at", "2021-04-07 02:31:31.649160"], ["name", "Phil"]]
|
98029
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98030
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98031
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.650659"], ["author_id", 3094], ["status", 2]]
|
98032
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98033
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
98034
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98035
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.653174"], ["author_id", 3094], ["status", 2]]
|
98036
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98037
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
98038
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98039
|
+
[1m[36mAuthor Create (0.2ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.655342"], ["updated_at", "2021-04-07 02:31:31.655342"], ["name", "Phyllis"]]
|
98040
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98041
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98042
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.656582"], ["author_id", 3095], ["status", 2]]
|
98043
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98044
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
98045
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98046
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.658546"], ["author_id", 3095], ["status", 2]]
|
98047
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98048
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
98049
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98050
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98051
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
98052
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98053
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.663278"], ["updated_at", "2021-04-07 02:31:31.663278"], ["name", "Phil"]]
|
98054
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98055
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98056
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.664584"], ["author_id", 3096], ["status", 2]]
|
98057
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98058
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
98059
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98060
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.666879"], ["author_id", 3096], ["status", 2]]
|
98061
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98062
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
98063
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98064
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.669108"], ["updated_at", "2021-04-07 02:31:31.669108"], ["name", "Phyllis"]]
|
98065
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98066
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98067
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.670412"], ["author_id", 3097], ["status", 2]]
|
98068
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98069
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
98070
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98071
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.672585"], ["author_id", 3097], ["status", 2]]
|
98072
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98073
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
98074
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98075
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98076
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
98077
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98078
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.678008"], ["updated_at", "2021-04-07 02:31:31.678008"], ["name", "Phil"]]
|
98079
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98080
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98081
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.679515"], ["author_id", 3098], ["status", 2]]
|
98082
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98083
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
98084
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98085
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.681819"], ["author_id", 3098], ["status", 2]]
|
98086
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98087
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT "posts".* FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('Phil'))[0m
|
98088
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98089
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98090
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('')) LIMIT $1[0m [["LIMIT", 1]]
|
98091
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98092
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98093
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IS NULL OR authors.name IN (NULL)) LIMIT $1[0m [["LIMIT", 1]]
|
98094
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98095
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98096
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98097
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98098
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98099
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98100
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98101
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98102
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98103
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98104
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98105
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98106
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98107
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98108
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98109
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98110
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98111
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98112
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98113
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98114
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98115
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98116
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
98117
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98118
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.704460"], ["updated_at", "2021-04-07 02:31:31.704460"], ["name", "Timmy"]]
|
98119
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98120
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98121
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.705877"], ["author_id", 3099], ["status", 2], ["likes", 1]]
|
98122
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98123
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
98124
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98125
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-07 02:31:31.708050"], ["author_id", 3099], ["status", 2], ["likes", 2]]
|
98126
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98127
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
98128
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98129
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.710274"], ["updated_at", "2021-04-07 02:31:31.710274"], ["name", "Tammy"]]
|
98130
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98131
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98132
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-07 02:31:31.711910"], ["author_id", 3100], ["status", 2], ["likes", 3]]
|
98133
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98134
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
98135
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98136
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.714506"], ["author_id", 3100], ["status", 2], ["likes", 4]]
|
98137
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98138
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
98139
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98140
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-15 00:00:00"], ["updated_at", "2021-04-07 02:31:31.716806"], ["author_id", 3100], ["status", 2], ["likes", 2]]
|
98141
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98142
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT 'totals' AS _active_reporter_dimension_totals, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" GROUP BY _active_reporter_dimension_totals ORDER BY _active_reporter_dimension_totals ASC NULLS FIRST[0m
|
98143
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
98144
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98145
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
98146
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98147
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.724553"], ["updated_at", "2021-04-07 02:31:31.724553"], ["name", "Timmy"]]
|
98148
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98149
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98150
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.726135"], ["author_id", 3101], ["status", 2], ["likes", 1]]
|
98151
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98152
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
98153
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98154
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-07 02:31:31.728722"], ["author_id", 3101], ["status", 2], ["likes", 2]]
|
98155
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98156
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
98157
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98158
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-07 02:31:31.731490"], ["updated_at", "2021-04-07 02:31:31.731490"], ["name", "Tammy"]]
|
98159
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98160
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98161
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-07 02:31:31.733024"], ["author_id", 3102], ["status", 2], ["likes", 3]]
|
98162
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98163
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
98164
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98165
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.735476"], ["author_id", 3102], ["status", 2], ["likes", 4]]
|
98166
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98167
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
98168
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98169
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-15 00:00:00"], ["updated_at", "2021-04-07 02:31:31.737757"], ["author_id", 3102], ["status", 2], ["likes", 2]]
|
98170
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98171
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT 'totals' AS _active_reporter_dimension_totals, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('Tammy')) GROUP BY _active_reporter_dimension_totals ORDER BY _active_reporter_dimension_totals ASC NULLS FIRST[0m
|
98172
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT 'totals' AS _active_reporter_dimension_totals, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" GROUP BY _active_reporter_dimension_totals ORDER BY _active_reporter_dimension_totals ASC NULLS FIRST[0m
|
98173
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98174
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98175
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98176
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.745091"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98177
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98178
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98179
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.746983"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98180
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98181
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98182
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.748593"], ["title", "B"], ["status", 2], ["likes", 1]]
|
98183
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98184
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98185
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-07 02:31:31.750166"], ["title", "A"], ["status", 2], ["likes", 1]]
|
98186
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98187
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
98188
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
98189
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98190
|
+
[1m[36mPost Load (0.8ms)[0m [1m[34mSELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count, SUM(posts.likes) AS _report_aggregator_likes_count FROM "posts" INNER JOIN (
|
98191
|
+
SELECT CAST('2016-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-01 00:00:00 UTC,2016-01-02 00:00:00 UTC' AS text) AS bin_text UNION
|
98192
|
+
SELECT CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-03 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-02 00:00:00 UTC,2016-01-03 00:00:00 UTC' AS text) AS bin_text
|
98193
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
98194
|
+
CASE
|
98195
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
|
98196
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
98197
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
98198
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
98199
|
+
END
|
98200
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
98201
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
98202
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98203
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98204
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.760741"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98205
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98206
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98207
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.763855"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98208
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98209
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98210
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.766113"], ["title", "B"], ["status", 2], ["likes", 1]]
|
98211
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98212
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98213
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-07 02:31:31.768041"], ["title", "A"], ["status", 2], ["likes", 1]]
|
98214
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98215
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT posts.title AS _active_reporter_dimension_title, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" GROUP BY _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
98216
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98217
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98218
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98219
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.772599"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98220
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98221
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98222
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.774446"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98223
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98224
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98225
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.776302"], ["title", "B"], ["status", 2], ["likes", 1]]
|
98226
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98227
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98228
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-07 02:31:31.778008"], ["title", "A"], ["status", 2], ["likes", 1]]
|
98229
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98230
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
98231
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
98232
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98233
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" INNER JOIN (
|
98234
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
98235
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
98236
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
98237
|
+
CASE
|
98238
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL AND _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes IS NULL)
|
98239
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
98240
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
98241
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
98242
|
+
END
|
98243
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
98244
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98245
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98246
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98247
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.785837"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98248
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98249
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98250
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.787736"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98251
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98252
|
+
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98253
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.789390"], ["title", "B"], ["status", 2], ["likes", 1]]
|
98254
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98255
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98256
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-07 02:31:31.791735"], ["title", "A"], ["status", 2], ["likes", 1]]
|
98257
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98258
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
98259
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
98260
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98261
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
98262
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
98263
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98264
|
+
[1m[36mPost Load (1.0ms)[0m [1m[34mSELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" INNER JOIN (
|
98265
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
98266
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
98267
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
98268
|
+
CASE
|
98269
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL AND _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes IS NULL)
|
98270
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
98271
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
98272
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
98273
|
+
END
|
98274
|
+
) INNER JOIN (
|
98275
|
+
SELECT CAST('2016-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-01 00:00:00 UTC,2016-01-02 00:00:00 UTC' AS text) AS bin_text UNION
|
98276
|
+
SELECT CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-03 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-02 00:00:00 UTC,2016-01-03 00:00:00 UTC' AS text) AS bin_text
|
98277
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
98278
|
+
CASE
|
98279
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
|
98280
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
98281
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
98282
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
98283
|
+
END
|
98284
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
98285
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
98286
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98287
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98288
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.864488"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98289
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98290
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98291
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.866302"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98292
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98293
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98294
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.867908"], ["title", "B"], ["status", 2], ["likes", 1]]
|
98295
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98296
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98297
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-07 02:31:31.869456"], ["title", "A"], ["status", 2], ["likes", 1]]
|
98298
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98299
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98300
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98301
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98302
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.872661"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98303
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98304
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98305
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.874300"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98306
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98307
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98308
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.875870"], ["title", "B"], ["status", 2], ["likes", 1]]
|
98309
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98310
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98311
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-07 02:31:31.877407"], ["title", "A"], ["status", 2], ["likes", 1]]
|
98312
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98313
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
98314
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
98315
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98316
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98317
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98318
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.881896"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98319
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98320
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98321
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.883612"], ["title", "A"], ["status", 2], ["likes", 2]]
|
98322
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98323
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98324
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-07 02:31:31.885157"], ["title", "B"], ["status", 2], ["likes", 1]]
|
98325
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98326
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98327
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-07 02:31:31.886652"], ["title", "A"], ["status", 2], ["likes", 1]]
|
98328
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98329
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
98330
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
98331
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98332
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
98333
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
98334
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98335
|
+
[1m[36mPost Load (1.0ms)[0m [1m[34mSELECT _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, posts.title AS _active_reporter_dimension_title, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" INNER JOIN (
|
98336
|
+
SELECT CAST('2016-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-01 00:00:00 UTC,2016-01-02 00:00:00 UTC' AS text) AS bin_text UNION
|
98337
|
+
SELECT CAST('2016-01-02 00:00:00' AS timestamp with time zone) AS min, CAST('2016-01-03 00:00:00' AS timestamp with time zone) AS max, CAST('2016-01-02 00:00:00 UTC,2016-01-03 00:00:00 UTC' AS text) AS bin_text
|
98338
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
98339
|
+
CASE
|
98340
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL AND _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at IS NULL)
|
98341
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
98342
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
98343
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
98344
|
+
END
|
98345
|
+
) INNER JOIN (
|
98346
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
98347
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
98348
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
98349
|
+
CASE
|
98350
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL AND _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes IS NULL)
|
98351
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
98352
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
98353
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
98354
|
+
END
|
98355
|
+
) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
98356
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|