active_reporter 0.5.8 → 0.5.9
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/metrics.rb +3 -3
- data/lib/active_reporter/version.rb +1 -1
- data/spec/dummy/log/test.log +2506 -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: a20dbac1b69255c7219dcdbdb71bcc5884ae8d8964e7c87cf5c4f89baaf18d6a
|
4
|
+
data.tar.gz: 5352fbc91177cee2b242a2164a6e05db8acaebc9d67efce43c8f0b4897df9b9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 943fe66295a65dd7984d4785f003d717f808c156787577932b217fc75923886771d887e81a09b10a2307c1536fc6293479178b39e658f00c41d8e6fa6a335fe8
|
7
|
+
data.tar.gz: a55aa6e716224d20f15488a7d9a9308d3d7d630fb31e1ca1847fb7d72f35ec59e81f12b553667e47660ea6a0ba8aa341d64ab8575be0fb690fb45c4fd31640f7
|
@@ -46,15 +46,15 @@ module ActiveReporter
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def calculators
|
49
|
-
@calculators ||= build_axes(self.class.calculators.slice(*Array(params[:calculators]).collect(&:to_sym)))
|
49
|
+
@calculators ||= build_axes(self.class.calculators.slice(*(Array(params[:calculators])+Array(params[:aggregators])).collect(&:to_sym).uniq))
|
50
50
|
end
|
51
51
|
|
52
52
|
def trackers
|
53
|
-
@trackers ||= build_axes(self.class.trackers.slice(*Array(params[:trackers]).collect(&:to_sym)))
|
53
|
+
@trackers ||= build_axes(self.class.trackers.slice(*(Array(params[:trackers])+Array(params[:aggregators])).collect(&:to_sym).uniq))
|
54
54
|
end
|
55
55
|
|
56
56
|
def evaluators
|
57
|
-
@evaluators ||= build_axes(self.class.evaluators.slice(*Array(params[:evaluators]).collect(&:to_sym)))
|
57
|
+
@evaluators ||= build_axes(self.class.evaluators.slice(*(Array(params[:evaluators])+Array(params[:aggregators])).collect(&:to_sym).uniq))
|
58
58
|
end
|
59
59
|
|
60
60
|
def fields
|
data/spec/dummy/log/test.log
CHANGED
@@ -37029,5 +37029,2511 @@
|
|
37029
37029
|
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
37030
37030
|
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
37031
37031
|
END
|
37032
|
+
) 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
|
37033
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
37034
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
37035
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
37036
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
37037
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
37038
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37039
|
+
[1m[36mAuthor Create (0.6ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.008189"], ["updated_at", "2020-10-05 06:04:28.008189"], ["name", "James Joyce"]]
|
37040
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37041
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37042
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37043
|
+
[1m[36mPost Create (0.6ms)[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", "2020-10-05 06:04:28.041465"], ["updated_at", "2020-10-05 06:04:28.041465"], ["author_id", 800], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
37044
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37045
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37046
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37047
|
+
[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", "2020-10-05 06:04:28.045737"], ["updated_at", "2020-10-05 06:04:28.045737"], ["author_id", 800], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
37048
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37049
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37050
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37051
|
+
[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", "2020-10-05 06:04:28.050044"], ["updated_at", "2020-10-05 06:04:28.050044"], ["author_id", 800], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
37052
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37053
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37054
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37055
|
+
[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-10-05 06:04:28.054088"], ["updated_at", "2020-10-05 06:04:28.054088"], ["author_id", 800], ["status", 2], ["likes", 3]]
|
37056
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37057
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37058
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.057271"], ["updated_at", "2020-10-05 06:04:28.057271"], ["name", "Virginia Woolf"]]
|
37059
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37060
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
37061
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37062
|
+
[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", "2020-10-05 06:04:28.061637"], ["updated_at", "2020-10-05 06:04:28.061637"], ["author_id", 801], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
37063
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37064
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
37065
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37066
|
+
[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", "2020-10-05 06:04:28.065204"], ["updated_at", "2020-10-05 06:04:28.065204"], ["author_id", 801], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
37067
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37068
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
37069
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37070
|
+
[1m[36mPost Create (5.8ms)[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-10-05 06:04:28.069147"], ["updated_at", "2020-10-05 06:04:28.069147"], ["author_id", 801], ["status", 2], ["likes", 3]]
|
37071
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37072
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37073
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.077937"], ["updated_at", "2020-10-05 06:04:28.077937"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
37074
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37075
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37076
|
+
[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", "2020-10-05 06:04:28.082491"], ["updated_at", "2020-10-05 06:04:28.082491"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
37077
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37078
|
+
[1m[36mPost Load (1.9ms)[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
|
37079
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
37080
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
37081
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37082
|
+
[1m[36mPost Load (1.7ms)[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 (
|
37083
|
+
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
|
37084
|
+
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
|
37085
|
+
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
|
37086
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
37087
|
+
CASE
|
37088
|
+
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)
|
37089
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
37090
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
37091
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
37092
|
+
END
|
37093
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
37094
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
37095
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
37096
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37097
|
+
[1m[36mPost Load (1.7ms)[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 (
|
37098
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
37099
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text UNION
|
37100
|
+
SELECT 3.0 AS min, 4.0 AS max, CAST('3.0,4.0' AS text) AS bin_text
|
37101
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
37102
|
+
CASE
|
37103
|
+
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)
|
37104
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
37105
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
37106
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
37107
|
+
END
|
37108
|
+
) GROUP BY _active_reporter_dimension_likes[0m
|
37109
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
37110
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37111
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37112
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.135167"], ["updated_at", "2020-10-05 06:04:28.135167"], ["name", "James Joyce"]]
|
37113
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37114
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37115
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37116
|
+
[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", "2020-10-05 06:04:28.138060"], ["updated_at", "2020-10-05 06:04:28.138060"], ["author_id", 802], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
37117
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37118
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37119
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37120
|
+
[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", "2020-10-05 06:04:28.140463"], ["updated_at", "2020-10-05 06:04:28.140463"], ["author_id", 802], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
37121
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37122
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37123
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37124
|
+
[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", "2020-10-05 06:04:28.142667"], ["updated_at", "2020-10-05 06:04:28.142667"], ["author_id", 802], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
37125
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37126
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37127
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37128
|
+
[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-10-05 06:04:28.144928"], ["updated_at", "2020-10-05 06:04:28.144928"], ["author_id", 802], ["status", 2], ["likes", 3]]
|
37129
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37130
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37131
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.146903"], ["updated_at", "2020-10-05 06:04:28.146903"], ["name", "Virginia Woolf"]]
|
37132
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37133
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
37134
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37135
|
+
[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", "2020-10-05 06:04:28.149220"], ["updated_at", "2020-10-05 06:04:28.149220"], ["author_id", 803], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
37136
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37137
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
37138
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37139
|
+
[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", "2020-10-05 06:04:28.151746"], ["updated_at", "2020-10-05 06:04:28.151746"], ["author_id", 803], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
37140
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37141
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
37142
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37143
|
+
[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-10-05 06:04:28.154371"], ["updated_at", "2020-10-05 06:04:28.154371"], ["author_id", 803], ["status", 2], ["likes", 3]]
|
37144
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37145
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37146
|
+
[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", "2020-10-05 06:04:28.156673"], ["updated_at", "2020-10-05 06:04:28.156673"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
37147
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37148
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37149
|
+
[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", "2020-10-05 06:04:28.158428"], ["updated_at", "2020-10-05 06:04:28.158428"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
37150
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37151
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
37152
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
37153
|
+
[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]]
|
37154
|
+
[1m[36mPost Load (1.2ms)[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 (
|
37155
|
+
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
|
37156
|
+
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
|
37157
|
+
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
|
37158
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
37159
|
+
CASE
|
37160
|
+
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)
|
37161
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
37162
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
37163
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
37164
|
+
END
|
37165
|
+
) GROUP BY _active_reporter_dimension_published_at, _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
37166
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
37167
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37168
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37169
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.179145"], ["updated_at", "2020-10-05 06:04:28.179145"], ["name", "James Joyce"]]
|
37170
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37171
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37172
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37173
|
+
[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", "2020-10-05 06:04:28.181857"], ["updated_at", "2020-10-05 06:04:28.181857"], ["author_id", 804], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
37174
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37175
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37176
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37177
|
+
[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", "2020-10-05 06:04:28.184436"], ["updated_at", "2020-10-05 06:04:28.184436"], ["author_id", 804], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
37178
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37179
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37180
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37181
|
+
[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", "2020-10-05 06:04:28.187105"], ["updated_at", "2020-10-05 06:04:28.187105"], ["author_id", 804], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
37182
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37183
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
37184
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37185
|
+
[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-10-05 06:04:28.189937"], ["updated_at", "2020-10-05 06:04:28.189937"], ["author_id", 804], ["status", 2], ["likes", 3]]
|
37186
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37187
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37188
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.192134"], ["updated_at", "2020-10-05 06:04:28.192134"], ["name", "Virginia Woolf"]]
|
37189
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37190
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
37191
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37192
|
+
[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", "2020-10-05 06:04:28.194483"], ["updated_at", "2020-10-05 06:04:28.194483"], ["author_id", 805], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
37193
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37194
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
37195
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37196
|
+
[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", "2020-10-05 06:04:28.197245"], ["updated_at", "2020-10-05 06:04:28.197245"], ["author_id", 805], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
37197
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37198
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
37199
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37200
|
+
[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-10-05 06:04:28.199858"], ["updated_at", "2020-10-05 06:04:28.199858"], ["author_id", 805], ["status", 2], ["likes", 3]]
|
37201
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37202
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37203
|
+
[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", "2020-10-05 06:04:28.202144"], ["updated_at", "2020-10-05 06:04:28.202144"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
37204
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37205
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37206
|
+
[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", "2020-10-05 06:04:28.203901"], ["updated_at", "2020-10-05 06:04:28.203901"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
37207
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37208
|
+
[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
|
37209
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
37210
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
37211
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37212
|
+
[1m[36mPost Load (1.0ms)[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 (
|
37213
|
+
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
|
37214
|
+
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
|
37215
|
+
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
|
37216
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
37217
|
+
CASE
|
37218
|
+
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)
|
37219
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
37220
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
37221
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
37222
|
+
END
|
37223
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
37224
|
+
[1m[36mPost Load (0.8ms)[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
|
37225
|
+
[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 FIRST[0m
|
37226
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
37227
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
37228
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37229
|
+
[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 (
|
37230
|
+
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
|
37231
|
+
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
|
37232
|
+
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
|
37233
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
37234
|
+
CASE
|
37235
|
+
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)
|
37236
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
37237
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
37238
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
37239
|
+
END
|
37240
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
37241
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
37242
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
37243
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37244
|
+
[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 (
|
37245
|
+
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
|
37246
|
+
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
|
37247
|
+
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
|
37248
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
37249
|
+
CASE
|
37250
|
+
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)
|
37251
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
37252
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
37253
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
37254
|
+
END
|
37255
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
37256
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
37257
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37258
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37259
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37260
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.245979"], ["updated_at", "2020-10-05 06:04:28.245979"], ["name", "Alice"]]
|
37261
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37262
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37263
|
+
[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-10-05 06:04:28.247471"], ["updated_at", "2020-10-05 06:04:28.247471"], ["author_id", 806], ["status", 2], ["likes", 3]]
|
37264
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37265
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37266
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37267
|
+
[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-10-05 06:04:28.249950"], ["updated_at", "2020-10-05 06:04:28.249950"], ["author_id", 806], ["status", 2], ["likes", 2]]
|
37268
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37269
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37270
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37271
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.252673"], ["updated_at", "2020-10-05 06:04:28.252673"], ["name", "Bob"]]
|
37272
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37273
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37274
|
+
[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-10-05 06:04:28.254155"], ["updated_at", "2020-10-05 06:04:28.254155"], ["author_id", 807], ["status", 2], ["likes", 4]]
|
37275
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37276
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37277
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37278
|
+
[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-10-05 06:04:28.256932"], ["updated_at", "2020-10-05 06:04:28.256932"], ["author_id", 807], ["status", 2], ["likes", 1]]
|
37279
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37280
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37281
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37282
|
+
[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-10-05 06:04:28.259572"], ["updated_at", "2020-10-05 06:04:28.259572"], ["author_id", 807], ["status", 2], ["likes", 5]]
|
37283
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37284
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
37285
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37286
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.261872"], ["updated_at", "2020-10-05 06:04:28.261872"], ["name", "Chester"]]
|
37287
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37288
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37289
|
+
[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-10-05 06:04:28.263113"], ["updated_at", "2020-10-05 06:04:28.263113"], ["author_id", 808], ["status", 2], ["likes", 10]]
|
37290
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37291
|
+
[1m[36mPost Load (0.7ms)[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
|
37292
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37293
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37294
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37295
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37296
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.269713"], ["updated_at", "2020-10-05 06:04:28.269713"], ["name", "Alice"]]
|
37297
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37298
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37299
|
+
[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-10-05 06:04:28.271426"], ["updated_at", "2020-10-05 06:04:28.271426"], ["author_id", 809], ["status", 2], ["likes", 3]]
|
37300
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37301
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37302
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37303
|
+
[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-10-05 06:04:28.274160"], ["updated_at", "2020-10-05 06:04:28.274160"], ["author_id", 809], ["status", 2], ["likes", 2]]
|
37304
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37305
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37306
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37307
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.276758"], ["updated_at", "2020-10-05 06:04:28.276758"], ["name", "Bob"]]
|
37308
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37309
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37310
|
+
[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-10-05 06:04:28.278199"], ["updated_at", "2020-10-05 06:04:28.278199"], ["author_id", 810], ["status", 2], ["likes", 4]]
|
37311
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37312
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37313
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37314
|
+
[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-10-05 06:04:28.280764"], ["updated_at", "2020-10-05 06:04:28.280764"], ["author_id", 810], ["status", 2], ["likes", 1]]
|
37315
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37316
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37317
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37318
|
+
[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-10-05 06:04:28.283112"], ["updated_at", "2020-10-05 06:04:28.283112"], ["author_id", 810], ["status", 2], ["likes", 5]]
|
37319
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37320
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
37321
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37322
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.285564"], ["updated_at", "2020-10-05 06:04:28.285564"], ["name", "Chester"]]
|
37323
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37324
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37325
|
+
[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-10-05 06:04:28.286909"], ["updated_at", "2020-10-05 06:04:28.286909"], ["author_id", 811], ["status", 2], ["likes", 10]]
|
37326
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37327
|
+
[1m[36mPost Load (0.7ms)[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
|
37328
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37329
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37330
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37331
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37332
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.293661"], ["updated_at", "2020-10-05 06:04:28.293661"], ["name", "Alice"]]
|
37333
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37334
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37335
|
+
[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-10-05 06:04:28.295054"], ["updated_at", "2020-10-05 06:04:28.295054"], ["author_id", 812], ["status", 2], ["likes", 3]]
|
37336
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37337
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37338
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37339
|
+
[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-10-05 06:04:28.297486"], ["updated_at", "2020-10-05 06:04:28.297486"], ["author_id", 812], ["status", 2], ["likes", 2]]
|
37340
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37341
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37342
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37343
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.299985"], ["updated_at", "2020-10-05 06:04:28.299985"], ["name", "Bob"]]
|
37344
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37345
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37346
|
+
[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-10-05 06:04:28.301611"], ["updated_at", "2020-10-05 06:04:28.301611"], ["author_id", 813], ["status", 2], ["likes", 4]]
|
37347
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37348
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37349
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37350
|
+
[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-10-05 06:04:28.304373"], ["updated_at", "2020-10-05 06:04:28.304373"], ["author_id", 813], ["status", 2], ["likes", 1]]
|
37351
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37352
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37353
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37354
|
+
[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-10-05 06:04:28.307056"], ["updated_at", "2020-10-05 06:04:28.307056"], ["author_id", 813], ["status", 2], ["likes", 5]]
|
37355
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37356
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
37357
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37358
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.310019"], ["updated_at", "2020-10-05 06:04:28.310019"], ["name", "Chester"]]
|
37359
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37360
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37361
|
+
[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-10-05 06:04:28.311550"], ["updated_at", "2020-10-05 06:04:28.311550"], ["author_id", 814], ["status", 2], ["likes", 10]]
|
37362
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37363
|
+
[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
|
37364
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37365
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37366
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37367
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37368
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.317675"], ["updated_at", "2020-10-05 06:04:28.317675"], ["name", "Alice"]]
|
37369
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37370
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37371
|
+
[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-10-05 06:04:28.319094"], ["updated_at", "2020-10-05 06:04:28.319094"], ["author_id", 815], ["status", 2], ["likes", 3]]
|
37372
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37373
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37374
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37375
|
+
[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-10-05 06:04:28.321305"], ["updated_at", "2020-10-05 06:04:28.321305"], ["author_id", 815], ["status", 2], ["likes", 2]]
|
37376
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37377
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37378
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37379
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.324035"], ["updated_at", "2020-10-05 06:04:28.324035"], ["name", "Bob"]]
|
37380
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37381
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37382
|
+
[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-10-05 06:04:28.325585"], ["updated_at", "2020-10-05 06:04:28.325585"], ["author_id", 816], ["status", 2], ["likes", 4]]
|
37383
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37384
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37385
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37386
|
+
[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-10-05 06:04:28.328402"], ["updated_at", "2020-10-05 06:04:28.328402"], ["author_id", 816], ["status", 2], ["likes", 1]]
|
37387
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37388
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37389
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37390
|
+
[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-10-05 06:04:28.331314"], ["updated_at", "2020-10-05 06:04:28.331314"], ["author_id", 816], ["status", 2], ["likes", 5]]
|
37391
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37392
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
37393
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37394
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.334138"], ["updated_at", "2020-10-05 06:04:28.334138"], ["name", "Chester"]]
|
37395
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37396
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37397
|
+
[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-10-05 06:04:28.335667"], ["updated_at", "2020-10-05 06:04:28.335667"], ["author_id", 817], ["status", 2], ["likes", 10]]
|
37398
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37399
|
+
[1m[36mPost Load (0.5ms)[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
|
37400
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37401
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37402
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37403
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37404
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.342109"], ["updated_at", "2020-10-05 06:04:28.342109"], ["name", "Alice"]]
|
37405
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37406
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37407
|
+
[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-10-05 06:04:28.343720"], ["updated_at", "2020-10-05 06:04:28.343720"], ["author_id", 818], ["status", 2], ["likes", 3]]
|
37408
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37409
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37410
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37411
|
+
[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-10-05 06:04:28.346215"], ["updated_at", "2020-10-05 06:04:28.346215"], ["author_id", 818], ["status", 2], ["likes", 2]]
|
37412
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37413
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37414
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37415
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.348898"], ["updated_at", "2020-10-05 06:04:28.348898"], ["name", "Bob"]]
|
37416
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37417
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37418
|
+
[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-10-05 06:04:28.350474"], ["updated_at", "2020-10-05 06:04:28.350474"], ["author_id", 819], ["status", 2], ["likes", 4]]
|
37419
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37420
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37421
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37422
|
+
[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-10-05 06:04:28.352817"], ["updated_at", "2020-10-05 06:04:28.352817"], ["author_id", 819], ["status", 2], ["likes", 1]]
|
37423
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37424
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37425
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37426
|
+
[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-10-05 06:04:28.355241"], ["updated_at", "2020-10-05 06:04:28.355241"], ["author_id", 819], ["status", 2], ["likes", 5]]
|
37427
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37428
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
37429
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37430
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.358235"], ["updated_at", "2020-10-05 06:04:28.358235"], ["name", "Chester"]]
|
37431
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37432
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37433
|
+
[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-10-05 06:04:28.359663"], ["updated_at", "2020-10-05 06:04:28.359663"], ["author_id", 820], ["status", 2], ["likes", 10]]
|
37434
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37435
|
+
[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
|
37436
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37437
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37438
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37439
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37440
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.365639"], ["updated_at", "2020-10-05 06:04:28.365639"], ["name", "Alice"]]
|
37441
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37442
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37443
|
+
[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-10-05 06:04:28.367099"], ["updated_at", "2020-10-05 06:04:28.367099"], ["author_id", 821], ["status", 2], ["likes", 3]]
|
37444
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37445
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37446
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37447
|
+
[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-10-05 06:04:28.369570"], ["updated_at", "2020-10-05 06:04:28.369570"], ["author_id", 821], ["status", 2], ["likes", 2]]
|
37448
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37449
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37450
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37451
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.372115"], ["updated_at", "2020-10-05 06:04:28.372115"], ["name", "Bob"]]
|
37452
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37453
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37454
|
+
[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-10-05 06:04:28.373948"], ["updated_at", "2020-10-05 06:04:28.373948"], ["author_id", 822], ["status", 2], ["likes", 4]]
|
37455
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37456
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37457
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37458
|
+
[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-10-05 06:04:28.376672"], ["updated_at", "2020-10-05 06:04:28.376672"], ["author_id", 822], ["status", 2], ["likes", 1]]
|
37459
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37460
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37461
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37462
|
+
[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-10-05 06:04:28.378949"], ["updated_at", "2020-10-05 06:04:28.378949"], ["author_id", 822], ["status", 2], ["likes", 5]]
|
37463
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37464
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
37465
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37466
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.381559"], ["updated_at", "2020-10-05 06:04:28.381559"], ["name", "Chester"]]
|
37467
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37468
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37469
|
+
[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-10-05 06:04:28.383049"], ["updated_at", "2020-10-05 06:04:28.383049"], ["author_id", 823], ["status", 2], ["likes", 10]]
|
37470
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37471
|
+
[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
|
37472
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37473
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37474
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37475
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37476
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37477
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37478
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37479
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37480
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37481
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37482
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37483
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37484
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37485
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37486
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37487
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37488
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37489
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37490
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37491
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37492
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37493
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37494
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37495
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37496
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37497
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37498
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37499
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37500
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37501
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37502
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37503
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37504
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37505
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37506
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37507
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37508
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37509
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37510
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37511
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37512
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
37513
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
37514
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37515
|
+
[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", "2020-10-05 06:04:28.415857"], ["updated_at", "2020-10-05 06:04:28.415857"], ["status", 2], ["likes", 3]]
|
37516
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37517
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37518
|
+
[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", "2020-10-05 06:04:28.417873"], ["updated_at", "2020-10-05 06:04:28.417873"], ["status", 2], ["likes", 10]]
|
37519
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37520
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37521
|
+
[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", "2020-10-05 06:04:28.419688"], ["updated_at", "2020-10-05 06:04:28.419688"], ["status", 2], ["likes", 1]]
|
37522
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37523
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
37524
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
37525
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37526
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37527
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37528
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37529
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37530
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.436439"], ["updated_at", "2020-10-05 06:04:28.436439"], ["status", 2], ["likes", 2]]
|
37531
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37532
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
37533
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37534
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37535
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37536
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37537
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37538
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37539
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37540
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.444141"], ["updated_at", "2020-10-05 06:04:28.444141"], ["name", "Alice"]]
|
37541
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37542
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37543
|
+
[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-10-05 06:04:28.445890"], ["updated_at", "2020-10-05 06:04:28.445890"], ["author_id", 824], ["status", 2]]
|
37544
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37545
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37546
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37547
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.448441"], ["updated_at", "2020-10-05 06:04:28.448441"], ["name", "Bob"]]
|
37548
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37549
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37550
|
+
[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-10-05 06:04:28.449930"], ["updated_at", "2020-10-05 06:04:28.449930"], ["author_id", 825], ["status", 2]]
|
37551
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37552
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37553
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.451576"], ["updated_at", "2020-10-05 06:04:28.451576"], ["status", 2]]
|
37554
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37555
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice'))[0m
|
37556
|
+
[1m[36mPost Load (0.5ms)[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
|
37557
|
+
[1m[36mPost Load (0.5ms)[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
|
37558
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice','Bob'))[0m
|
37559
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN (NULL))[0m
|
37560
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37561
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37562
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37563
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37564
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.461374"], ["updated_at", "2020-10-05 06:04:28.461374"], ["name", "Alice"]]
|
37565
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37566
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37567
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.463018"], ["updated_at", "2020-10-05 06:04:28.463018"], ["author_id", 826], ["status", 2]]
|
37568
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37569
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
37570
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37571
|
+
[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-10-05 06:04:28.465973"], ["updated_at", "2020-10-05 06:04:28.465973"], ["author_id", 826], ["status", 2]]
|
37572
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37573
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37574
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.468107"], ["updated_at", "2020-10-05 06:04:28.468107"], ["status", 2]]
|
37575
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37576
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37577
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37578
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.470819"], ["updated_at", "2020-10-05 06:04:28.470819"], ["name", "Bob"]]
|
37579
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37580
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37581
|
+
[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-10-05 06:04:28.472377"], ["updated_at", "2020-10-05 06:04:28.472377"], ["author_id", 827], ["status", 2]]
|
37582
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37583
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37584
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37585
|
+
[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-10-05 06:04:28.475172"], ["updated_at", "2020-10-05 06:04:28.475172"], ["author_id", 827], ["status", 2]]
|
37586
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37587
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
37588
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37589
|
+
[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-10-05 06:04:28.477841"], ["updated_at", "2020-10-05 06:04:28.477841"], ["author_id", 827], ["status", 2]]
|
37590
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37591
|
+
[1m[36mPost Load (0.7ms)[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
|
37592
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37593
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37594
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37595
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37596
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37597
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37598
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37599
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37600
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37601
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37602
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37603
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37604
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37605
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37606
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37607
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37608
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37609
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37610
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37611
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37612
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37613
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37614
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37615
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37616
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37617
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37618
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37619
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37620
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37621
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37622
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37623
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37624
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37625
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37626
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37627
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37628
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37629
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37630
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
37631
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37632
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37633
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37634
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.520367"], ["updated_at", "2020-10-05 06:04:28.520367"], ["name", "Tammy"]]
|
37635
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37636
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37637
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-05 06:04:28.521999"], ["author_id", 828], ["status", 2], ["likes", 23]]
|
37638
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37639
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37640
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37641
|
+
[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-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.525175"], ["author_id", 828], ["status", 2], ["likes", 7]]
|
37642
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37643
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37644
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37645
|
+
[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-01-12 00:00:00"], ["updated_at", "2020-10-05 06:04:28.527836"], ["author_id", 828], ["status", 2], ["likes", 4]]
|
37646
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37647
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37648
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37649
|
+
[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-03-08 00:00:00"], ["updated_at", "2020-10-05 06:04:28.530636"], ["author_id", 828], ["status", 2], ["likes", 11]]
|
37650
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37651
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37652
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37653
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.533388"], ["updated_at", "2020-10-05 06:04:28.533388"], ["name", "Timmy"]]
|
37654
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37655
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37656
|
+
[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", "2019-01-15 00:00:00"], ["updated_at", "2020-10-05 06:04:28.534890"], ["author_id", 829], ["status", 2], ["likes", 3]]
|
37657
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37658
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37659
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37660
|
+
[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", "2019-02-27 00:00:00"], ["updated_at", "2020-10-05 06:04:28.537735"], ["author_id", 829], ["status", 2], ["likes", 24]]
|
37661
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37662
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37663
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37664
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-05 06:04:28.541215"], ["author_id", 829], ["status", 2]]
|
37665
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37666
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37667
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37668
|
+
[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-03-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.544551"], ["author_id", 829], ["status", 2], ["likes", 19]]
|
37669
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37670
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37671
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37672
|
+
[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", "2019-04-08 00:00:00"], ["updated_at", "2020-10-05 06:04:28.547251"], ["author_id", 829], ["status", 2], ["likes", 8]]
|
37673
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37674
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')[0m
|
37675
|
+
[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-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37676
|
+
[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 (
|
37677
|
+
SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37678
|
+
SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37679
|
+
SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37680
|
+
SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
|
37681
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
37682
|
+
CASE
|
37683
|
+
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)
|
37684
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
37685
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
37686
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
37687
|
+
END
|
37688
|
+
) WHERE (posts.created_at >= '2019-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
|
37689
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
37690
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37691
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37692
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37693
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.563423"], ["updated_at", "2020-10-05 06:04:28.563423"], ["name", "Tammy"]]
|
37694
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37695
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37696
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-05 06:04:28.565190"], ["author_id", 830], ["status", 2], ["likes", 23]]
|
37697
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37698
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37699
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37700
|
+
[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", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.568284"], ["author_id", 830], ["status", 2], ["likes", 7]]
|
37701
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37702
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37703
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37704
|
+
[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", "2019-01-12 00:00:00"], ["updated_at", "2020-10-05 06:04:28.571038"], ["author_id", 830], ["status", 2], ["likes", 4]]
|
37705
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37706
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37707
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37708
|
+
[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", "2019-03-08 00:00:00"], ["updated_at", "2020-10-05 06:04:28.574106"], ["author_id", 830], ["status", 2], ["likes", 11]]
|
37709
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37710
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37711
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37712
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.577089"], ["updated_at", "2020-10-05 06:04:28.577089"], ["name", "Timmy"]]
|
37713
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37714
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37715
|
+
[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-01-15 00:00:00"], ["updated_at", "2020-10-05 06:04:28.578779"], ["author_id", 831], ["status", 2], ["likes", 3]]
|
37716
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37717
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37718
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37719
|
+
[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", "2019-02-27 00:00:00"], ["updated_at", "2020-10-05 06:04:28.581566"], ["author_id", 831], ["status", 2], ["likes", 24]]
|
37720
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37721
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37722
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37723
|
+
[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", "2019-02-28 00:00:00"], ["updated_at", "2020-10-05 06:04:28.584764"], ["author_id", 831], ["status", 2]]
|
37724
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37725
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37726
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37727
|
+
[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", "2019-03-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.587346"], ["author_id", 831], ["status", 2], ["likes", 19]]
|
37728
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37729
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37730
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37731
|
+
[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", "2019-04-08 00:00:00"], ["updated_at", "2020-10-05 06:04:28.590733"], ["author_id", 831], ["status", 2], ["likes", 8]]
|
37732
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37733
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')[0m
|
37734
|
+
[1m[36mPost Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37735
|
+
[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 (
|
37736
|
+
SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37737
|
+
SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37738
|
+
SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37739
|
+
SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
|
37740
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
37741
|
+
CASE
|
37742
|
+
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)
|
37743
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
37744
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
37745
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
37746
|
+
END
|
37747
|
+
) WHERE (posts.created_at >= '2019-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
|
37748
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
37749
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37750
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37751
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37752
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.610856"], ["updated_at", "2020-10-05 06:04:28.610856"], ["name", "Tammy"]]
|
37753
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37754
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37755
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-05 06:04:28.612827"], ["author_id", 832], ["status", 2], ["likes", 23]]
|
37756
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37757
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37758
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37759
|
+
[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", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.616040"], ["author_id", 832], ["status", 2], ["likes", 7]]
|
37760
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37761
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37762
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37763
|
+
[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", "2019-01-12 00:00:00"], ["updated_at", "2020-10-05 06:04:28.619344"], ["author_id", 832], ["status", 2], ["likes", 4]]
|
37764
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37765
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37766
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37767
|
+
[1m[36mPost Create (0.6ms)[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-03-08 00:00:00"], ["updated_at", "2020-10-05 06:04:28.622453"], ["author_id", 832], ["status", 2], ["likes", 11]]
|
37768
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37769
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37770
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37771
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.626219"], ["updated_at", "2020-10-05 06:04:28.626219"], ["name", "Timmy"]]
|
37772
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37773
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37774
|
+
[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-01-15 00:00:00"], ["updated_at", "2020-10-05 06:04:28.627770"], ["author_id", 833], ["status", 2], ["likes", 3]]
|
37775
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37776
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37777
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37778
|
+
[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-02-27 00:00:00"], ["updated_at", "2020-10-05 06:04:28.630693"], ["author_id", 833], ["status", 2], ["likes", 24]]
|
37779
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37780
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37781
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37782
|
+
[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", "2019-02-28 00:00:00"], ["updated_at", "2020-10-05 06:04:28.633863"], ["author_id", 833], ["status", 2]]
|
37783
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37784
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37785
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37786
|
+
[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-03-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.636560"], ["author_id", 833], ["status", 2], ["likes", 19]]
|
37787
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37788
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37789
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37790
|
+
[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-04-08 00:00:00"], ["updated_at", "2020-10-05 06:04:28.639113"], ["author_id", 833], ["status", 2], ["likes", 8]]
|
37791
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37792
|
+
[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 >= '2019-01-01 00:00:00')[0m
|
37793
|
+
[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-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37794
|
+
[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 (
|
37795
|
+
SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37796
|
+
SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37797
|
+
SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37798
|
+
SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
|
37799
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
37800
|
+
CASE
|
37801
|
+
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)
|
37802
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
37803
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
37804
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
37805
|
+
END
|
37806
|
+
) WHERE (posts.created_at >= '2019-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
|
37807
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
37808
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
37809
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37810
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37811
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.655510"], ["updated_at", "2020-10-05 06:04:28.655510"], ["name", "Tammy"]]
|
37812
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37813
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37814
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-05 06:04:28.657561"], ["author_id", 834], ["status", 2], ["likes", 23]]
|
37815
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37816
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37817
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37818
|
+
[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", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.660532"], ["author_id", 834], ["status", 2], ["likes", 7]]
|
37819
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37820
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37821
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37822
|
+
[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-01-12 00:00:00"], ["updated_at", "2020-10-05 06:04:28.663223"], ["author_id", 834], ["status", 2], ["likes", 4]]
|
37823
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37824
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37825
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37826
|
+
[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-03-08 00:00:00"], ["updated_at", "2020-10-05 06:04:28.666228"], ["author_id", 834], ["status", 2], ["likes", 11]]
|
37827
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37828
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37829
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37830
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.669459"], ["updated_at", "2020-10-05 06:04:28.669459"], ["name", "Timmy"]]
|
37831
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37832
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37833
|
+
[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-01-15 00:00:00"], ["updated_at", "2020-10-05 06:04:28.671076"], ["author_id", 835], ["status", 2], ["likes", 3]]
|
37834
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37835
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37836
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37837
|
+
[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-02-27 00:00:00"], ["updated_at", "2020-10-05 06:04:28.673780"], ["author_id", 835], ["status", 2], ["likes", 24]]
|
37838
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37839
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37840
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37841
|
+
[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", "2019-02-28 00:00:00"], ["updated_at", "2020-10-05 06:04:28.676121"], ["author_id", 835], ["status", 2]]
|
37842
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37843
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37844
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37845
|
+
[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-03-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.678481"], ["author_id", 835], ["status", 2], ["likes", 19]]
|
37846
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37847
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37848
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37849
|
+
[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", "2019-04-08 00:00:00"], ["updated_at", "2020-10-05 06:04:28.681267"], ["author_id", 835], ["status", 2], ["likes", 8]]
|
37850
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37851
|
+
[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 >= '2019-01-01 00:00:00')[0m
|
37852
|
+
[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-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37853
|
+
[1m[36mPost Load (1.3ms)[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 (
|
37854
|
+
SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37855
|
+
SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37856
|
+
SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37857
|
+
SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
|
37858
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
37859
|
+
CASE
|
37860
|
+
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)
|
37861
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
37862
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
37863
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
37864
|
+
END
|
37865
|
+
) WHERE (posts.created_at >= '2019-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
|
37866
|
+
[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 >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
37867
|
+
[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_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
37868
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
37869
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37870
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37871
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37872
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.704791"], ["updated_at", "2020-10-05 06:04:28.704791"], ["name", "Tammy"]]
|
37873
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37874
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37875
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-05 06:04:28.706502"], ["author_id", 836], ["status", 2], ["likes", 23]]
|
37876
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37877
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37878
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37879
|
+
[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-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.708915"], ["author_id", 836], ["status", 2], ["likes", 7]]
|
37880
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37881
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37882
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37883
|
+
[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-01-12 00:00:00"], ["updated_at", "2020-10-05 06:04:28.711142"], ["author_id", 836], ["status", 2], ["likes", 4]]
|
37884
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37885
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
37886
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37887
|
+
[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-03-08 00:00:00"], ["updated_at", "2020-10-05 06:04:28.713475"], ["author_id", 836], ["status", 2], ["likes", 11]]
|
37888
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37889
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37890
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37891
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.716036"], ["updated_at", "2020-10-05 06:04:28.716036"], ["name", "Timmy"]]
|
37892
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37893
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37894
|
+
[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-01-15 00:00:00"], ["updated_at", "2020-10-05 06:04:28.717405"], ["author_id", 837], ["status", 2], ["likes", 3]]
|
37895
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37896
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37897
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37898
|
+
[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-02-27 00:00:00"], ["updated_at", "2020-10-05 06:04:28.719617"], ["author_id", 837], ["status", 2], ["likes", 24]]
|
37899
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37900
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37901
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37902
|
+
[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", "2019-02-28 00:00:00"], ["updated_at", "2020-10-05 06:04:28.721987"], ["author_id", 837], ["status", 2]]
|
37903
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37904
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37905
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37906
|
+
[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-03-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.724824"], ["author_id", 837], ["status", 2], ["likes", 19]]
|
37907
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37908
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
37909
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37910
|
+
[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-04-08 00:00:00"], ["updated_at", "2020-10-05 06:04:28.727121"], ["author_id", 837], ["status", 2], ["likes", 8]]
|
37911
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37912
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')[0m
|
37913
|
+
[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 >= '2019-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37914
|
+
[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 >= '2018-12-01 00:00:00' AND posts.created_at < '2019-01-01 00:00:00')) AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
37915
|
+
[1m[36mPost Load (0.9ms)[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 (
|
37916
|
+
SELECT CAST('2018-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2018-12-01 00:00:00 UTC,2019-01-01 00:00:00 UTC' AS text) AS bin_text
|
37917
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
37918
|
+
CASE
|
37919
|
+
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)
|
37920
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
37921
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
37922
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
37923
|
+
END
|
37924
|
+
) WHERE ((posts.created_at >= '2018-12-01 00:00:00' AND posts.created_at < '2019-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]]
|
37925
|
+
[1m[36mPost Load (1.3ms)[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 (
|
37926
|
+
SELECT CAST('2018-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2018-12-01 00:00:00 UTC,2019-01-01 00:00:00 UTC' AS text) AS bin_text
|
37927
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
37928
|
+
CASE
|
37929
|
+
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)
|
37930
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
37931
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
37932
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
37933
|
+
END
|
37934
|
+
) WHERE ((posts.created_at >= '2018-12-01 00:00:00' AND posts.created_at < '2019-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
|
37935
|
+
[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 (
|
37936
|
+
SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37937
|
+
SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37938
|
+
SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
37939
|
+
SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
|
37940
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
37941
|
+
CASE
|
37942
|
+
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)
|
37943
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
37944
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
37945
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
37946
|
+
END
|
37947
|
+
) WHERE (posts.created_at >= '2019-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
|
37948
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
37949
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37950
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37951
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37952
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37953
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37954
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
37955
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37956
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
37957
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37958
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.762876"], ["updated_at", "2020-10-05 06:04:28.762876"], ["name", "Phil"]]
|
37959
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37960
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37961
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.764888"], ["author_id", 838], ["status", 2]]
|
37962
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37963
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
37964
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37965
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.767986"], ["author_id", 838], ["status", 2]]
|
37966
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37967
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
37968
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37969
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.771154"], ["updated_at", "2020-10-05 06:04:28.771154"], ["name", "Phyllis"]]
|
37970
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37971
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37972
|
+
[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", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.772829"], ["author_id", 839], ["status", 2]]
|
37973
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37974
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
37975
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37976
|
+
[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", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.775598"], ["author_id", 839], ["status", 2]]
|
37977
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37978
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
37979
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
37980
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
37981
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
37982
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37983
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.782223"], ["updated_at", "2020-10-05 06:04:28.782223"], ["name", "Phil"]]
|
37984
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37985
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37986
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.784669"], ["author_id", 840], ["status", 2]]
|
37987
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37988
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
37989
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37990
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.789142"], ["author_id", 840], ["status", 2]]
|
37991
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37992
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
37993
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37994
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.793274"], ["updated_at", "2020-10-05 06:04:28.793274"], ["name", "Phyllis"]]
|
37995
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37996
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
37997
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.795811"], ["author_id", 841], ["status", 2]]
|
37998
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
37999
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
38000
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38001
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.799379"], ["author_id", 841], ["status", 2]]
|
38002
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38003
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
38004
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38005
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38006
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
38007
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38008
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.806741"], ["updated_at", "2020-10-05 06:04:28.806741"], ["name", "Phil"]]
|
38009
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38010
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38011
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.808740"], ["author_id", 842], ["status", 2]]
|
38012
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38013
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
38014
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38015
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.812193"], ["author_id", 842], ["status", 2]]
|
38016
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38017
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT "posts".* FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('Phil'))[0m
|
38018
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38019
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38020
|
+
[1m[36mPost Exists? (0.6ms)[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]]
|
38021
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38022
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38023
|
+
[1m[36mPost Exists? (0.6ms)[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]]
|
38024
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38025
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38026
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
38027
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38028
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38029
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38030
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38031
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38032
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38033
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38034
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38035
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38036
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
38037
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38038
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38039
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38040
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38041
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38042
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38043
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38044
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38045
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38046
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38047
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38048
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.851569"], ["updated_at", "2020-10-05 06:04:28.851569"], ["name", "Timmy"]]
|
38049
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38050
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38051
|
+
[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", "2019-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.853523"], ["author_id", 843], ["status", 2], ["likes", 1]]
|
38052
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38053
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38054
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38055
|
+
[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", "2019-01-12 00:00:00"], ["updated_at", "2020-10-05 06:04:28.857217"], ["author_id", 843], ["status", 2], ["likes", 2]]
|
38056
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38057
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38058
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38059
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.860520"], ["updated_at", "2020-10-05 06:04:28.860520"], ["name", "Tammy"]]
|
38060
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38061
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38062
|
+
[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-01-15 00:00:00"], ["updated_at", "2020-10-05 06:04:28.862544"], ["author_id", 844], ["status", 2], ["likes", 3]]
|
38063
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38064
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38065
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38066
|
+
[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-03-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.866049"], ["author_id", 844], ["status", 2], ["likes", 4]]
|
38067
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38068
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38069
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38070
|
+
[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-03-15 00:00:00"], ["updated_at", "2020-10-05 06:04:28.870783"], ["author_id", 844], ["status", 2], ["likes", 2]]
|
38071
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38072
|
+
[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
|
38073
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
38074
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38075
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38076
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38077
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.879546"], ["updated_at", "2020-10-05 06:04:28.879546"], ["name", "Timmy"]]
|
38078
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38079
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38080
|
+
[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-01-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.881548"], ["author_id", 845], ["status", 2], ["likes", 1]]
|
38081
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38082
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38083
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38084
|
+
[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-01-12 00:00:00"], ["updated_at", "2020-10-05 06:04:28.885354"], ["author_id", 845], ["status", 2], ["likes", 2]]
|
38085
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38086
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38087
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38088
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-05 06:04:28.888872"], ["updated_at", "2020-10-05 06:04:28.888872"], ["name", "Tammy"]]
|
38089
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38090
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38091
|
+
[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-01-15 00:00:00"], ["updated_at", "2020-10-05 06:04:28.891095"], ["author_id", 846], ["status", 2], ["likes", 3]]
|
38092
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38093
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38094
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38095
|
+
[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", "2019-03-01 00:00:00"], ["updated_at", "2020-10-05 06:04:28.894347"], ["author_id", 846], ["status", 2], ["likes", 4]]
|
38096
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38097
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38098
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38099
|
+
[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-03-15 00:00:00"], ["updated_at", "2020-10-05 06:04:28.897817"], ["author_id", 846], ["status", 2], ["likes", 2]]
|
38100
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38101
|
+
[1m[36mPost Load (0.7ms)[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
|
38102
|
+
[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" GROUP BY _active_reporter_dimension_totals ORDER BY _active_reporter_dimension_totals ASC NULLS FIRST[0m
|
38103
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38104
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38105
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38106
|
+
[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", "2020-10-05 06:04:28.907284"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38107
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38108
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38109
|
+
[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", "2020-10-05 06:04:28.910026"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38110
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38111
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38112
|
+
[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", "2020-10-05 06:04:28.912458"], ["title", "B"], ["status", 2], ["likes", 1]]
|
38113
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38114
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38115
|
+
[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-02 00:00:00"], ["updated_at", "2020-10-05 06:04:28.914928"], ["title", "A"], ["status", 2], ["likes", 1]]
|
38116
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38117
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
38118
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
38119
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38120
|
+
[1m[36mPost Load (1.0ms)[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 (
|
38121
|
+
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
|
38122
|
+
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
|
38123
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
38124
|
+
CASE
|
38125
|
+
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)
|
38126
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
38127
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
38128
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
38129
|
+
END
|
38130
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
38131
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
38132
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38133
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38134
|
+
[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", "2020-10-05 06:04:28.928146"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38135
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38136
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38137
|
+
[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", "2020-10-05 06:04:28.930249"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38138
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38139
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38140
|
+
[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", "2020-10-05 06:04:28.932380"], ["title", "B"], ["status", 2], ["likes", 1]]
|
38141
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38142
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38143
|
+
[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", "2020-10-05 06:04:28.934295"], ["title", "A"], ["status", 2], ["likes", 1]]
|
38144
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38145
|
+
[1m[36mPost Load (0.6ms)[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
|
38146
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38147
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38148
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38149
|
+
[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", "2020-10-05 06:04:28.943232"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38150
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38151
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38152
|
+
[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", "2020-10-05 06:04:28.945098"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38153
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38154
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38155
|
+
[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", "2020-10-05 06:04:28.946825"], ["title", "B"], ["status", 2], ["likes", 1]]
|
38156
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38157
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38158
|
+
[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-02 00:00:00"], ["updated_at", "2020-10-05 06:04:28.948560"], ["title", "A"], ["status", 2], ["likes", 1]]
|
38159
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38160
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
38161
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
38162
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38163
|
+
[1m[36mPost Load (0.8ms)[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 (
|
38164
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
38165
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
38166
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
38167
|
+
CASE
|
38168
|
+
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)
|
38169
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
38170
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
38171
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
38172
|
+
END
|
38173
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
38174
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38175
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38176
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38177
|
+
[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", "2020-10-05 06:04:28.957872"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38178
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38179
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38180
|
+
[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", "2020-10-05 06:04:28.960012"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38181
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38182
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38183
|
+
[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", "2020-10-05 06:04:28.961904"], ["title", "B"], ["status", 2], ["likes", 1]]
|
38184
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38185
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38186
|
+
[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-02 00:00:00"], ["updated_at", "2020-10-05 06:04:28.963851"], ["title", "A"], ["status", 2], ["likes", 1]]
|
38187
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38188
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
38189
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
38190
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38191
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
38192
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
38193
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38194
|
+
[1m[36mPost Load (1.2ms)[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 (
|
38195
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
38196
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
38197
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
38198
|
+
CASE
|
38199
|
+
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)
|
38200
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
38201
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
38202
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
38203
|
+
END
|
38204
|
+
) INNER JOIN (
|
38205
|
+
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
|
38206
|
+
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
|
38207
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
38208
|
+
CASE
|
38209
|
+
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)
|
38210
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
38211
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
38212
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
38213
|
+
END
|
38214
|
+
) 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
|
38215
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
38216
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38217
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38218
|
+
[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", "2020-10-05 06:04:29.034747"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38219
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38220
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38221
|
+
[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", "2020-10-05 06:04:29.036542"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38222
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38223
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38224
|
+
[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", "2020-10-05 06:04:29.038509"], ["title", "B"], ["status", 2], ["likes", 1]]
|
38225
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38226
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38227
|
+
[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", "2020-10-05 06:04:29.040547"], ["title", "A"], ["status", 2], ["likes", 1]]
|
38228
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38229
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38230
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38231
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38232
|
+
[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", "2020-10-05 06:04:29.044214"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38233
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38234
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38235
|
+
[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", "2020-10-05 06:04:29.046201"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38236
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38237
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38238
|
+
[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", "2020-10-05 06:04:29.048192"], ["title", "B"], ["status", 2], ["likes", 1]]
|
38239
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38240
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38241
|
+
[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", "2020-10-05 06:04:29.049930"], ["title", "A"], ["status", 2], ["likes", 1]]
|
38242
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38243
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
38244
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
38245
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38246
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38247
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38248
|
+
[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", "2020-10-05 06:04:29.054912"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38249
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38250
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38251
|
+
[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", "2020-10-05 06:04:29.057002"], ["title", "A"], ["status", 2], ["likes", 2]]
|
38252
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38253
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38254
|
+
[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", "2020-10-05 06:04:29.058901"], ["title", "B"], ["status", 2], ["likes", 1]]
|
38255
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38256
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38257
|
+
[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", "2020-10-05 06:04:29.060795"], ["title", "A"], ["status", 2], ["likes", 1]]
|
38258
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38259
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
38260
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
38261
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38262
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
38263
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
38264
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38265
|
+
[1m[36mPost Load (1.3ms)[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 (
|
38266
|
+
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
|
38267
|
+
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
|
38268
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
38269
|
+
CASE
|
38270
|
+
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)
|
38271
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
38272
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
38273
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
38274
|
+
END
|
38275
|
+
) INNER JOIN (
|
38276
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
38277
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
38278
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
38279
|
+
CASE
|
38280
|
+
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)
|
38281
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
38282
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
38283
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
38284
|
+
END
|
38285
|
+
) 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
|
38286
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
38287
|
+
[1m[35m (12.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
38288
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
38289
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
38290
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
38291
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38292
|
+
[1m[36mAuthor Create (3.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.625423"], ["updated_at", "2020-10-06 03:58:06.625423"], ["name", "James Joyce"]]
|
38293
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38294
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38295
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38296
|
+
[1m[36mPost Create (0.6ms)[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", "2020-10-06 03:58:06.654377"], ["updated_at", "2020-10-06 03:58:06.654377"], ["author_id", 847], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
38297
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38298
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38299
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38300
|
+
[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", "2020-10-06 03:58:06.658865"], ["updated_at", "2020-10-06 03:58:06.658865"], ["author_id", 847], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
38301
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38302
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38303
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38304
|
+
[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", "2020-10-06 03:58:06.662542"], ["updated_at", "2020-10-06 03:58:06.662542"], ["author_id", 847], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
38305
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38306
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38307
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38308
|
+
[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-10-06 03:58:06.667268"], ["updated_at", "2020-10-06 03:58:06.667268"], ["author_id", 847], ["status", 2], ["likes", 3]]
|
38309
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38310
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38311
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.671661"], ["updated_at", "2020-10-06 03:58:06.671661"], ["name", "Virginia Woolf"]]
|
38312
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38313
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
38314
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38315
|
+
[1m[36mPost Create (0.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", "2020-10-06 03:58:06.679358"], ["updated_at", "2020-10-06 03:58:06.679358"], ["author_id", 848], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
38316
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38317
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
38318
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38319
|
+
[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", "2020-10-06 03:58:06.685221"], ["updated_at", "2020-10-06 03:58:06.685221"], ["author_id", 848], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
38320
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38321
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
38322
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38323
|
+
[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-10-06 03:58:06.689727"], ["updated_at", "2020-10-06 03:58:06.689727"], ["author_id", 848], ["status", 2], ["likes", 3]]
|
38324
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38325
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38326
|
+
[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", "2020-10-06 03:58:06.694095"], ["updated_at", "2020-10-06 03:58:06.694095"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
38327
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38328
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38329
|
+
[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", "2020-10-06 03:58:06.697379"], ["updated_at", "2020-10-06 03:58:06.697379"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
38330
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38331
|
+
[1m[36mPost Load (2.1ms)[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
|
38332
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
38333
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
38334
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38335
|
+
[1m[36mPost Load (2.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 (
|
38336
|
+
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
|
38337
|
+
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
|
38338
|
+
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
|
38339
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
38340
|
+
CASE
|
38341
|
+
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)
|
38342
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
38343
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
38344
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
38345
|
+
END
|
38346
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
38347
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
38348
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
38349
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38350
|
+
[1m[36mPost Load (1.8ms)[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 (
|
38351
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
38352
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text UNION
|
38353
|
+
SELECT 3.0 AS min, 4.0 AS max, CAST('3.0,4.0' AS text) AS bin_text
|
38354
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
38355
|
+
CASE
|
38356
|
+
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)
|
38357
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
38358
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
38359
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
38360
|
+
END
|
38361
|
+
) GROUP BY _active_reporter_dimension_likes[0m
|
38362
|
+
[1m[35m (1.4ms)[0m [1m[31mROLLBACK[0m
|
38363
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38364
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38365
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.775840"], ["updated_at", "2020-10-06 03:58:06.775840"], ["name", "James Joyce"]]
|
38366
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38367
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38368
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38369
|
+
[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", "2020-10-06 03:58:06.794157"], ["updated_at", "2020-10-06 03:58:06.794157"], ["author_id", 849], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
38370
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38371
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38372
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38373
|
+
[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", "2020-10-06 03:58:06.796918"], ["updated_at", "2020-10-06 03:58:06.796918"], ["author_id", 849], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
38374
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38375
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38376
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38377
|
+
[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", "2020-10-06 03:58:06.799628"], ["updated_at", "2020-10-06 03:58:06.799628"], ["author_id", 849], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
38378
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38379
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38380
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38381
|
+
[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-10-06 03:58:06.802821"], ["updated_at", "2020-10-06 03:58:06.802821"], ["author_id", 849], ["status", 2], ["likes", 3]]
|
38382
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38383
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38384
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.805520"], ["updated_at", "2020-10-06 03:58:06.805520"], ["name", "Virginia Woolf"]]
|
38385
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38386
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
38387
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38388
|
+
[1m[36mPost Create (0.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", "2020-10-06 03:58:06.808699"], ["updated_at", "2020-10-06 03:58:06.808699"], ["author_id", 850], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
38389
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38390
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
38391
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38392
|
+
[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", "2020-10-06 03:58:06.813055"], ["updated_at", "2020-10-06 03:58:06.813055"], ["author_id", 850], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
38393
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38394
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
38395
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38396
|
+
[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", "2020-10-06 03:58:06.816125"], ["updated_at", "2020-10-06 03:58:06.816125"], ["author_id", 850], ["status", 2], ["likes", 3]]
|
38397
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38398
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38399
|
+
[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", "2020-10-06 03:58:06.819390"], ["updated_at", "2020-10-06 03:58:06.819390"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
38400
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38401
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38402
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.822609"], ["updated_at", "2020-10-06 03:58:06.822609"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
38403
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38404
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
38405
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
38406
|
+
[1m[36mPost Exists? (0.4ms)[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]]
|
38407
|
+
[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 (
|
38408
|
+
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
|
38409
|
+
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
|
38410
|
+
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
|
38411
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
38412
|
+
CASE
|
38413
|
+
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)
|
38414
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
38415
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
38416
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
38417
|
+
END
|
38418
|
+
) GROUP BY _active_reporter_dimension_published_at, _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
38419
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
38420
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38421
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38422
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.849450"], ["updated_at", "2020-10-06 03:58:06.849450"], ["name", "James Joyce"]]
|
38423
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38424
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38425
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38426
|
+
[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", "2020-10-06 03:58:06.853776"], ["updated_at", "2020-10-06 03:58:06.853776"], ["author_id", 851], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
38427
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38428
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38429
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38430
|
+
[1m[36mPost Create (0.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", "2020-10-06 03:58:06.857080"], ["updated_at", "2020-10-06 03:58:06.857080"], ["author_id", 851], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
38431
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38432
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38433
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38434
|
+
[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", "2020-10-06 03:58:06.860363"], ["updated_at", "2020-10-06 03:58:06.860363"], ["author_id", 851], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
38435
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38436
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
38437
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38438
|
+
[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-10-06 03:58:06.863211"], ["updated_at", "2020-10-06 03:58:06.863211"], ["author_id", 851], ["status", 2], ["likes", 3]]
|
38439
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38440
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38441
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.865783"], ["updated_at", "2020-10-06 03:58:06.865783"], ["name", "Virginia Woolf"]]
|
38442
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38443
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
38444
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38445
|
+
[1m[36mPost Create (0.6ms)[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", "2020-10-06 03:58:06.869320"], ["updated_at", "2020-10-06 03:58:06.869320"], ["author_id", 852], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
38446
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38447
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
38448
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38449
|
+
[1m[36mPost Create (0.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", "2020-10-06 03:58:06.874768"], ["updated_at", "2020-10-06 03:58:06.874768"], ["author_id", 852], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
38450
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38451
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
38452
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38453
|
+
[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-10-06 03:58:06.878746"], ["updated_at", "2020-10-06 03:58:06.878746"], ["author_id", 852], ["status", 2], ["likes", 3]]
|
38454
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38455
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38456
|
+
[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", "2020-10-06 03:58:06.881411"], ["updated_at", "2020-10-06 03:58:06.881411"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
38457
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38458
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38459
|
+
[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", "2020-10-06 03:58:06.884083"], ["updated_at", "2020-10-06 03:58:06.884083"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
38460
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38461
|
+
[1m[36mPost Load (1.0ms)[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
|
38462
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
38463
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
38464
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38465
|
+
[1m[36mPost Load (1.3ms)[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 (
|
38466
|
+
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
|
38467
|
+
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
|
38468
|
+
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
|
38469
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
38470
|
+
CASE
|
38471
|
+
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)
|
38472
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
38473
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
38474
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
38475
|
+
END
|
38476
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
38477
|
+
[1m[36mPost Load (0.9ms)[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
|
38478
|
+
[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 FIRST[0m
|
38479
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
38480
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
38481
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38482
|
+
[1m[36mPost Load (1.2ms)[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 (
|
38483
|
+
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
|
38484
|
+
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
|
38485
|
+
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
|
38486
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
38487
|
+
CASE
|
38488
|
+
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)
|
38489
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
38490
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
38491
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
38492
|
+
END
|
38493
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
38494
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
38495
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
38496
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38497
|
+
[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 (
|
38498
|
+
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
|
38499
|
+
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
|
38500
|
+
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
|
38501
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
38502
|
+
CASE
|
38503
|
+
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)
|
38504
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
38505
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
38506
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
38507
|
+
END
|
38508
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
38509
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
38510
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38511
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38512
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38513
|
+
[1m[36mAuthor Create (0.6ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.944464"], ["updated_at", "2020-10-06 03:58:06.944464"], ["name", "Alice"]]
|
38514
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38515
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38516
|
+
[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", "2020-10-06 03:58:06.947675"], ["updated_at", "2020-10-06 03:58:06.947675"], ["author_id", 853], ["status", 2], ["likes", 3]]
|
38517
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38518
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38519
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38520
|
+
[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-10-06 03:58:06.951885"], ["updated_at", "2020-10-06 03:58:06.951885"], ["author_id", 853], ["status", 2], ["likes", 2]]
|
38521
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38522
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38523
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38524
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.955634"], ["updated_at", "2020-10-06 03:58:06.955634"], ["name", "Bob"]]
|
38525
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38526
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38527
|
+
[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-10-06 03:58:06.957407"], ["updated_at", "2020-10-06 03:58:06.957407"], ["author_id", 854], ["status", 2], ["likes", 4]]
|
38528
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38529
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38530
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38531
|
+
[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-10-06 03:58:06.959996"], ["updated_at", "2020-10-06 03:58:06.959996"], ["author_id", 854], ["status", 2], ["likes", 1]]
|
38532
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38533
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38534
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38535
|
+
[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-10-06 03:58:06.962951"], ["updated_at", "2020-10-06 03:58:06.962951"], ["author_id", 854], ["status", 2], ["likes", 5]]
|
38536
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38537
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
38538
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38539
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.965825"], ["updated_at", "2020-10-06 03:58:06.965825"], ["name", "Chester"]]
|
38540
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38541
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38542
|
+
[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-10-06 03:58:06.967536"], ["updated_at", "2020-10-06 03:58:06.967536"], ["author_id", 855], ["status", 2], ["likes", 10]]
|
38543
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38544
|
+
[1m[36mPost Load (1.7ms)[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
|
38545
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
38546
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38547
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38548
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38549
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.979512"], ["updated_at", "2020-10-06 03:58:06.979512"], ["name", "Alice"]]
|
38550
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38551
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38552
|
+
[1m[36mPost Create (0.8ms)[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-10-06 03:58:06.982544"], ["updated_at", "2020-10-06 03:58:06.982544"], ["author_id", 856], ["status", 2], ["likes", 3]]
|
38553
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38554
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38555
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38556
|
+
[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", "2020-10-06 03:58:06.987929"], ["updated_at", "2020-10-06 03:58:06.987929"], ["author_id", 856], ["status", 2], ["likes", 2]]
|
38557
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38558
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38559
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38560
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:06.993354"], ["updated_at", "2020-10-06 03:58:06.993354"], ["name", "Bob"]]
|
38561
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38562
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38563
|
+
[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", "2020-10-06 03:58:06.996458"], ["updated_at", "2020-10-06 03:58:06.996458"], ["author_id", 857], ["status", 2], ["likes", 4]]
|
38564
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38565
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38566
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38567
|
+
[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-10-06 03:58:07.001000"], ["updated_at", "2020-10-06 03:58:07.001000"], ["author_id", 857], ["status", 2], ["likes", 1]]
|
38568
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38569
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38570
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38571
|
+
[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-10-06 03:58:07.004236"], ["updated_at", "2020-10-06 03:58:07.004236"], ["author_id", 857], ["status", 2], ["likes", 5]]
|
38572
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38573
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
38574
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38575
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.007100"], ["updated_at", "2020-10-06 03:58:07.007100"], ["name", "Chester"]]
|
38576
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38577
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38578
|
+
[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-10-06 03:58:07.008806"], ["updated_at", "2020-10-06 03:58:07.008806"], ["author_id", 858], ["status", 2], ["likes", 10]]
|
38579
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38580
|
+
[1m[36mPost Load (0.5ms)[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
|
38581
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38582
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38583
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38584
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38585
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.015113"], ["updated_at", "2020-10-06 03:58:07.015113"], ["name", "Alice"]]
|
38586
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38587
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38588
|
+
[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-10-06 03:58:07.016624"], ["updated_at", "2020-10-06 03:58:07.016624"], ["author_id", 859], ["status", 2], ["likes", 3]]
|
38589
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38590
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38591
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38592
|
+
[1m[36mPost Create (0.9ms)[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-10-06 03:58:07.020171"], ["updated_at", "2020-10-06 03:58:07.020171"], ["author_id", 859], ["status", 2], ["likes", 2]]
|
38593
|
+
[1m[35m (1.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38594
|
+
[1m[36mAuthor Load (0.5ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38595
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38596
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.026253"], ["updated_at", "2020-10-06 03:58:07.026253"], ["name", "Bob"]]
|
38597
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38598
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38599
|
+
[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", "2020-10-06 03:58:07.029082"], ["updated_at", "2020-10-06 03:58:07.029082"], ["author_id", 860], ["status", 2], ["likes", 4]]
|
38600
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38601
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38602
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38603
|
+
[1m[36mPost Create (0.6ms)[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-10-06 03:58:07.033840"], ["updated_at", "2020-10-06 03:58:07.033840"], ["author_id", 860], ["status", 2], ["likes", 1]]
|
38604
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38605
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38606
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38607
|
+
[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", "2020-10-06 03:58:07.039397"], ["updated_at", "2020-10-06 03:58:07.039397"], ["author_id", 860], ["status", 2], ["likes", 5]]
|
38608
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38609
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
38610
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38611
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.044698"], ["updated_at", "2020-10-06 03:58:07.044698"], ["name", "Chester"]]
|
38612
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38613
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38614
|
+
[1m[36mPost Create (0.6ms)[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-10-06 03:58:07.047740"], ["updated_at", "2020-10-06 03:58:07.047740"], ["author_id", 861], ["status", 2], ["likes", 10]]
|
38615
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38616
|
+
[1m[36mPost Load (1.0ms)[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
|
38617
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
38618
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38619
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38620
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38621
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.057279"], ["updated_at", "2020-10-06 03:58:07.057279"], ["name", "Alice"]]
|
38622
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38623
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38624
|
+
[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-10-06 03:58:07.059007"], ["updated_at", "2020-10-06 03:58:07.059007"], ["author_id", 862], ["status", 2], ["likes", 3]]
|
38625
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38626
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38627
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38628
|
+
[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-10-06 03:58:07.062052"], ["updated_at", "2020-10-06 03:58:07.062052"], ["author_id", 862], ["status", 2], ["likes", 2]]
|
38629
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38630
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38631
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38632
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.064994"], ["updated_at", "2020-10-06 03:58:07.064994"], ["name", "Bob"]]
|
38633
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38634
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38635
|
+
[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-10-06 03:58:07.066893"], ["updated_at", "2020-10-06 03:58:07.066893"], ["author_id", 863], ["status", 2], ["likes", 4]]
|
38636
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38637
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38638
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38639
|
+
[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", "2020-10-06 03:58:07.071290"], ["updated_at", "2020-10-06 03:58:07.071290"], ["author_id", 863], ["status", 2], ["likes", 1]]
|
38640
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38641
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38642
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38643
|
+
[1m[36mPost Create (0.6ms)[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-10-06 03:58:07.076482"], ["updated_at", "2020-10-06 03:58:07.076482"], ["author_id", 863], ["status", 2], ["likes", 5]]
|
38644
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38645
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
38646
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38647
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.081334"], ["updated_at", "2020-10-06 03:58:07.081334"], ["name", "Chester"]]
|
38648
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38649
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38650
|
+
[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", "2020-10-06 03:58:07.084135"], ["updated_at", "2020-10-06 03:58:07.084135"], ["author_id", 864], ["status", 2], ["likes", 10]]
|
38651
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38652
|
+
[1m[36mPost Load (1.0ms)[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
|
38653
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
38654
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38655
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38656
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38657
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.095164"], ["updated_at", "2020-10-06 03:58:07.095164"], ["name", "Alice"]]
|
38658
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38659
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38660
|
+
[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", "2020-10-06 03:58:07.097836"], ["updated_at", "2020-10-06 03:58:07.097836"], ["author_id", 865], ["status", 2], ["likes", 3]]
|
38661
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38662
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38663
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38664
|
+
[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-10-06 03:58:07.102078"], ["updated_at", "2020-10-06 03:58:07.102078"], ["author_id", 865], ["status", 2], ["likes", 2]]
|
38665
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38666
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38667
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38668
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.105292"], ["updated_at", "2020-10-06 03:58:07.105292"], ["name", "Bob"]]
|
38669
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38670
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38671
|
+
[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-10-06 03:58:07.107198"], ["updated_at", "2020-10-06 03:58:07.107198"], ["author_id", 866], ["status", 2], ["likes", 4]]
|
38672
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38673
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38674
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38675
|
+
[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-10-06 03:58:07.109905"], ["updated_at", "2020-10-06 03:58:07.109905"], ["author_id", 866], ["status", 2], ["likes", 1]]
|
38676
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38677
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38678
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38679
|
+
[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-10-06 03:58:07.112341"], ["updated_at", "2020-10-06 03:58:07.112341"], ["author_id", 866], ["status", 2], ["likes", 5]]
|
38680
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38681
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
38682
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38683
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.114640"], ["updated_at", "2020-10-06 03:58:07.114640"], ["name", "Chester"]]
|
38684
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38685
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38686
|
+
[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-10-06 03:58:07.115953"], ["updated_at", "2020-10-06 03:58:07.115953"], ["author_id", 867], ["status", 2], ["likes", 10]]
|
38687
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38688
|
+
[1m[36mPost Load (0.9ms)[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
|
38689
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
38690
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38691
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38692
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38693
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.125672"], ["updated_at", "2020-10-06 03:58:07.125672"], ["name", "Alice"]]
|
38694
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38695
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38696
|
+
[1m[36mPost Create (0.6ms)[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-10-06 03:58:07.128667"], ["updated_at", "2020-10-06 03:58:07.128667"], ["author_id", 868], ["status", 2], ["likes", 3]]
|
38697
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38698
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38699
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38700
|
+
[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", "2020-10-06 03:58:07.133357"], ["updated_at", "2020-10-06 03:58:07.133357"], ["author_id", 868], ["status", 2], ["likes", 2]]
|
38701
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38702
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38703
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38704
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.137870"], ["updated_at", "2020-10-06 03:58:07.137870"], ["name", "Bob"]]
|
38705
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38706
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38707
|
+
[1m[36mPost Create (0.6ms)[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-10-06 03:58:07.140709"], ["updated_at", "2020-10-06 03:58:07.140709"], ["author_id", 869], ["status", 2], ["likes", 4]]
|
38708
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38709
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38710
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38711
|
+
[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-10-06 03:58:07.145355"], ["updated_at", "2020-10-06 03:58:07.145355"], ["author_id", 869], ["status", 2], ["likes", 1]]
|
38712
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38713
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38714
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38715
|
+
[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-10-06 03:58:07.149992"], ["updated_at", "2020-10-06 03:58:07.149992"], ["author_id", 869], ["status", 2], ["likes", 5]]
|
38716
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38717
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
38718
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38719
|
+
[1m[36mAuthor Create (8.7ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.152996"], ["updated_at", "2020-10-06 03:58:07.152996"], ["name", "Chester"]]
|
38720
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38721
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38722
|
+
[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-10-06 03:58:07.163125"], ["updated_at", "2020-10-06 03:58:07.163125"], ["author_id", 870], ["status", 2], ["likes", 10]]
|
38723
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38724
|
+
[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
|
38725
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38726
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38727
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38728
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38729
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38730
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38731
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38732
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38733
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38734
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38735
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38736
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38737
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38738
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38739
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38740
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38741
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38742
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38743
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38744
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38745
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38746
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38747
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38748
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38749
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38750
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38751
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38752
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38753
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38754
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38755
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38756
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38757
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38758
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38759
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38760
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38761
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38762
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38763
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38764
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38765
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
38766
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
38767
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38768
|
+
[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", "2020-10-06 03:58:07.207234"], ["updated_at", "2020-10-06 03:58:07.207234"], ["status", 2], ["likes", 3]]
|
38769
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38770
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38771
|
+
[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", "2020-10-06 03:58:07.209007"], ["updated_at", "2020-10-06 03:58:07.209007"], ["status", 2], ["likes", 10]]
|
38772
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38773
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38774
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.210452"], ["updated_at", "2020-10-06 03:58:07.210452"], ["status", 2], ["likes", 1]]
|
38775
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38776
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
38777
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
38778
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38779
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38780
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38781
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38782
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38783
|
+
[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", "2020-10-06 03:58:07.227228"], ["updated_at", "2020-10-06 03:58:07.227228"], ["status", 2], ["likes", 2]]
|
38784
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38785
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
38786
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38787
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38788
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38789
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38790
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38791
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38792
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38793
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.233770"], ["updated_at", "2020-10-06 03:58:07.233770"], ["name", "Alice"]]
|
38794
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38795
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38796
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.235615"], ["updated_at", "2020-10-06 03:58:07.235615"], ["author_id", 871], ["status", 2]]
|
38797
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38798
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38799
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38800
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.238556"], ["updated_at", "2020-10-06 03:58:07.238556"], ["name", "Bob"]]
|
38801
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38802
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38803
|
+
[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-10-06 03:58:07.240318"], ["updated_at", "2020-10-06 03:58:07.240318"], ["author_id", 872], ["status", 2]]
|
38804
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38805
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38806
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.242168"], ["updated_at", "2020-10-06 03:58:07.242168"], ["status", 2]]
|
38807
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38808
|
+
[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
|
38809
|
+
[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
|
38810
|
+
[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
|
38811
|
+
[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
|
38812
|
+
[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
|
38813
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38814
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38815
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38816
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38817
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.250651"], ["updated_at", "2020-10-06 03:58:07.250651"], ["name", "Alice"]]
|
38818
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38819
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38820
|
+
[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-10-06 03:58:07.252372"], ["updated_at", "2020-10-06 03:58:07.252372"], ["author_id", 873], ["status", 2]]
|
38821
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38822
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
38823
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38824
|
+
[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-10-06 03:58:07.255312"], ["updated_at", "2020-10-06 03:58:07.255312"], ["author_id", 873], ["status", 2]]
|
38825
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38826
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38827
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.257165"], ["updated_at", "2020-10-06 03:58:07.257165"], ["status", 2]]
|
38828
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38829
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38830
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38831
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.259547"], ["updated_at", "2020-10-06 03:58:07.259547"], ["name", "Bob"]]
|
38832
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38833
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38834
|
+
[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-10-06 03:58:07.261030"], ["updated_at", "2020-10-06 03:58:07.261030"], ["author_id", 874], ["status", 2]]
|
38835
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38836
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38837
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38838
|
+
[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-10-06 03:58:07.263537"], ["updated_at", "2020-10-06 03:58:07.263537"], ["author_id", 874], ["status", 2]]
|
38839
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38840
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
38841
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38842
|
+
[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-10-06 03:58:07.266070"], ["updated_at", "2020-10-06 03:58:07.266070"], ["author_id", 874], ["status", 2]]
|
38843
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38844
|
+
[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
|
38845
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38846
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38847
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38848
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38849
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38850
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38851
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38852
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38853
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38854
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38855
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38856
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38857
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38858
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38859
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38860
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38861
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38862
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38863
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38864
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38865
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38866
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38867
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
38868
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38869
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38870
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38871
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38872
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38873
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38874
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38875
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38876
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38877
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38878
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38879
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38880
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38881
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38882
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38883
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
38884
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38885
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38886
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38887
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.300942"], ["updated_at", "2020-10-06 03:58:07.300942"], ["name", "Tammy"]]
|
38888
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38889
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38890
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 03:58:07.302866"], ["author_id", 875], ["status", 2], ["likes", 23]]
|
38891
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38892
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38893
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38894
|
+
[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-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.306061"], ["author_id", 875], ["status", 2], ["likes", 7]]
|
38895
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38896
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38897
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38898
|
+
[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-01-12 00:00:00"], ["updated_at", "2020-10-06 03:58:07.308756"], ["author_id", 875], ["status", 2], ["likes", 4]]
|
38899
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38900
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38901
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38902
|
+
[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-03-08 00:00:00"], ["updated_at", "2020-10-06 03:58:07.311703"], ["author_id", 875], ["status", 2], ["likes", 11]]
|
38903
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38904
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38905
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38906
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.314696"], ["updated_at", "2020-10-06 03:58:07.314696"], ["name", "Timmy"]]
|
38907
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38908
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38909
|
+
[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", "2019-01-15 00:00:00"], ["updated_at", "2020-10-06 03:58:07.316094"], ["author_id", 876], ["status", 2], ["likes", 3]]
|
38910
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38911
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38912
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38913
|
+
[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", "2019-02-27 00:00:00"], ["updated_at", "2020-10-06 03:58:07.319418"], ["author_id", 876], ["status", 2], ["likes", 24]]
|
38914
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38915
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38916
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38917
|
+
[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", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 03:58:07.322565"], ["author_id", 876], ["status", 2]]
|
38918
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38919
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38920
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38921
|
+
[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-03-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.325145"], ["author_id", 876], ["status", 2], ["likes", 19]]
|
38922
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38923
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38924
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38925
|
+
[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-04-08 00:00:00"], ["updated_at", "2020-10-06 03:58:07.327492"], ["author_id", 876], ["status", 2], ["likes", 8]]
|
38926
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38927
|
+
[1m[35m (9.4ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')[0m
|
38928
|
+
[1m[36mPost Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38929
|
+
[1m[36mPost Load (1.3ms)[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 (
|
38930
|
+
SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
38931
|
+
SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
38932
|
+
SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
38933
|
+
SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
|
38934
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
38935
|
+
CASE
|
38936
|
+
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)
|
38937
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
38938
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
38939
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
38940
|
+
END
|
38941
|
+
) WHERE (posts.created_at >= '2019-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
|
38942
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
38943
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
38944
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38945
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38946
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.356752"], ["updated_at", "2020-10-06 03:58:07.356752"], ["name", "Tammy"]]
|
38947
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38948
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38949
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 03:58:07.358617"], ["author_id", 877], ["status", 2], ["likes", 23]]
|
38950
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38951
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38952
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38953
|
+
[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-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.361281"], ["author_id", 877], ["status", 2], ["likes", 7]]
|
38954
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38955
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38956
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38957
|
+
[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-01-12 00:00:00"], ["updated_at", "2020-10-06 03:58:07.363644"], ["author_id", 877], ["status", 2], ["likes", 4]]
|
38958
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38959
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
38960
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38961
|
+
[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", "2019-03-08 00:00:00"], ["updated_at", "2020-10-06 03:58:07.366227"], ["author_id", 877], ["status", 2], ["likes", 11]]
|
38962
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38963
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38964
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38965
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.369194"], ["updated_at", "2020-10-06 03:58:07.369194"], ["name", "Timmy"]]
|
38966
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38967
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38968
|
+
[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-01-15 00:00:00"], ["updated_at", "2020-10-06 03:58:07.371036"], ["author_id", 878], ["status", 2], ["likes", 3]]
|
38969
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38970
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38971
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38972
|
+
[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-02-27 00:00:00"], ["updated_at", "2020-10-06 03:58:07.373950"], ["author_id", 878], ["status", 2], ["likes", 24]]
|
38973
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38974
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38975
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38976
|
+
[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", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 03:58:07.377101"], ["author_id", 878], ["status", 2]]
|
38977
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38978
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38979
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38980
|
+
[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-03-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.379977"], ["author_id", 878], ["status", 2], ["likes", 19]]
|
38981
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38982
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
38983
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
38984
|
+
[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-04-08 00:00:00"], ["updated_at", "2020-10-06 03:58:07.382391"], ["author_id", 878], ["status", 2], ["likes", 8]]
|
38985
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
38986
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')[0m
|
38987
|
+
[1m[36mPost Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
38988
|
+
[1m[36mPost Load (1.2ms)[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 (
|
38989
|
+
SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
38990
|
+
SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
38991
|
+
SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
38992
|
+
SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
|
38993
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
38994
|
+
CASE
|
38995
|
+
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)
|
38996
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
38997
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
38998
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
38999
|
+
END
|
39000
|
+
) WHERE (posts.created_at >= '2019-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
|
39001
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39002
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39003
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39004
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39005
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.402119"], ["updated_at", "2020-10-06 03:58:07.402119"], ["name", "Tammy"]]
|
39006
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39007
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39008
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 03:58:07.404032"], ["author_id", 879], ["status", 2], ["likes", 23]]
|
39009
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39010
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39011
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39012
|
+
[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-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.406976"], ["author_id", 879], ["status", 2], ["likes", 7]]
|
39013
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39014
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39015
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39016
|
+
[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-01-12 00:00:00"], ["updated_at", "2020-10-06 03:58:07.409574"], ["author_id", 879], ["status", 2], ["likes", 4]]
|
39017
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39018
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39019
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39020
|
+
[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-03-08 00:00:00"], ["updated_at", "2020-10-06 03:58:07.411955"], ["author_id", 879], ["status", 2], ["likes", 11]]
|
39021
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39022
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39023
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39024
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.414509"], ["updated_at", "2020-10-06 03:58:07.414509"], ["name", "Timmy"]]
|
39025
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39026
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39027
|
+
[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-01-15 00:00:00"], ["updated_at", "2020-10-06 03:58:07.415931"], ["author_id", 880], ["status", 2], ["likes", 3]]
|
39028
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39029
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39030
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39031
|
+
[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", "2019-02-27 00:00:00"], ["updated_at", "2020-10-06 03:58:07.419011"], ["author_id", 880], ["status", 2], ["likes", 24]]
|
39032
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39033
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39034
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39035
|
+
[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", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 03:58:07.421861"], ["author_id", 880], ["status", 2]]
|
39036
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39037
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39038
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39039
|
+
[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", "2019-03-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.424401"], ["author_id", 880], ["status", 2], ["likes", 19]]
|
39040
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39041
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39042
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39043
|
+
[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-04-08 00:00:00"], ["updated_at", "2020-10-06 03:58:07.427684"], ["author_id", 880], ["status", 2], ["likes", 8]]
|
39044
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39045
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')[0m
|
39046
|
+
[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-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39047
|
+
[1m[36mPost Load (1.4ms)[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 (
|
39048
|
+
SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
39049
|
+
SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
39050
|
+
SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
39051
|
+
SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
|
39052
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
39053
|
+
CASE
|
39054
|
+
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)
|
39055
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
39056
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
39057
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
39058
|
+
END
|
39059
|
+
) WHERE (posts.created_at >= '2019-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
|
39060
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39061
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39062
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39063
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39064
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.446499"], ["updated_at", "2020-10-06 03:58:07.446499"], ["name", "Tammy"]]
|
39065
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39066
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39067
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 03:58:07.448189"], ["author_id", 881], ["status", 2], ["likes", 23]]
|
39068
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39069
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39070
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39071
|
+
[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", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.451301"], ["author_id", 881], ["status", 2], ["likes", 7]]
|
39072
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39073
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39074
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39075
|
+
[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-01-12 00:00:00"], ["updated_at", "2020-10-06 03:58:07.454432"], ["author_id", 881], ["status", 2], ["likes", 4]]
|
39076
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39077
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39078
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39079
|
+
[1m[36mPost Create (1.2ms)[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-03-08 00:00:00"], ["updated_at", "2020-10-06 03:58:07.457090"], ["author_id", 881], ["status", 2], ["likes", 11]]
|
39080
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39081
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39082
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39083
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.460869"], ["updated_at", "2020-10-06 03:58:07.460869"], ["name", "Timmy"]]
|
39084
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39085
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39086
|
+
[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-01-15 00:00:00"], ["updated_at", "2020-10-06 03:58:07.462277"], ["author_id", 882], ["status", 2], ["likes", 3]]
|
39087
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39088
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39089
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39090
|
+
[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-02-27 00:00:00"], ["updated_at", "2020-10-06 03:58:07.464831"], ["author_id", 882], ["status", 2], ["likes", 24]]
|
39091
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39092
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39093
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39094
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 03:58:07.467422"], ["author_id", 882], ["status", 2]]
|
39095
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39096
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39097
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39098
|
+
[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-03-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.471868"], ["author_id", 882], ["status", 2], ["likes", 19]]
|
39099
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39100
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39101
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39102
|
+
[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", "2019-04-08 00:00:00"], ["updated_at", "2020-10-06 03:58:07.476033"], ["author_id", 882], ["status", 2], ["likes", 8]]
|
39103
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39104
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')[0m
|
39105
|
+
[1m[36mPost Exists? (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39106
|
+
[1m[36mPost Load (1.6ms)[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 (
|
39107
|
+
SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
39108
|
+
SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
39109
|
+
SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
39110
|
+
SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
|
39111
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
39112
|
+
CASE
|
39113
|
+
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)
|
39114
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
39115
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
39116
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
39117
|
+
END
|
39118
|
+
) WHERE (posts.created_at >= '2019-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
|
39119
|
+
[1m[36mPost Load (1.1ms)[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 >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
39120
|
+
[1m[36mPost Load (1.1ms)[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 >= '2019-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
39121
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39122
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39123
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39124
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39125
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.509137"], ["updated_at", "2020-10-06 03:58:07.509137"], ["name", "Tammy"]]
|
39126
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39127
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39128
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 03:58:07.510690"], ["author_id", 883], ["status", 2], ["likes", 23]]
|
39129
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39130
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39131
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39132
|
+
[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", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.513208"], ["author_id", 883], ["status", 2], ["likes", 7]]
|
39133
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39134
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39135
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39136
|
+
[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", "2019-01-12 00:00:00"], ["updated_at", "2020-10-06 03:58:07.516024"], ["author_id", 883], ["status", 2], ["likes", 4]]
|
39137
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39138
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39139
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39140
|
+
[1m[36mPost Create (0.7ms)[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-03-08 00:00:00"], ["updated_at", "2020-10-06 03:58:07.519554"], ["author_id", 883], ["status", 2], ["likes", 11]]
|
39141
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39142
|
+
[1m[36mAuthor Load (0.7ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39143
|
+
[1m[35m (4.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39144
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.525286"], ["updated_at", "2020-10-06 03:58:07.525286"], ["name", "Timmy"]]
|
39145
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39146
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39147
|
+
[1m[36mPost Create (0.7ms)[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-01-15 00:00:00"], ["updated_at", "2020-10-06 03:58:07.531930"], ["author_id", 884], ["status", 2], ["likes", 3]]
|
39148
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39149
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39150
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39151
|
+
[1m[36mPost Create (0.6ms)[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-02-27 00:00:00"], ["updated_at", "2020-10-06 03:58:07.537064"], ["author_id", 884], ["status", 2], ["likes", 24]]
|
39152
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39153
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39154
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39155
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 03:58:07.542543"], ["author_id", 884], ["status", 2]]
|
39156
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39157
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39158
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39159
|
+
[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-03-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.547490"], ["author_id", 884], ["status", 2], ["likes", 19]]
|
39160
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39161
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39162
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39163
|
+
[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-04-08 00:00:00"], ["updated_at", "2020-10-06 03:58:07.551978"], ["author_id", 884], ["status", 2], ["likes", 8]]
|
39164
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39165
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2019-01-01 00:00:00')[0m
|
39166
|
+
[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-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39167
|
+
[1m[36mPost Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE ((posts.created_at >= '2018-12-01 00:00:00' AND posts.created_at < '2019-01-01 00:00:00')) AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39168
|
+
[1m[36mPost Load (0.9ms)[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 (
|
39169
|
+
SELECT CAST('2018-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2018-12-01 00:00:00 UTC,2019-01-01 00:00:00 UTC' AS text) AS bin_text
|
39170
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
39171
|
+
CASE
|
39172
|
+
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)
|
39173
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
39174
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
39175
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
39176
|
+
END
|
39177
|
+
) WHERE ((posts.created_at >= '2018-12-01 00:00:00' AND posts.created_at < '2019-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]]
|
39178
|
+
[1m[36mPost Load (0.9ms)[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 (
|
39179
|
+
SELECT CAST('2018-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2018-12-01 00:00:00 UTC,2019-01-01 00:00:00 UTC' AS text) AS bin_text
|
39180
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
39181
|
+
CASE
|
39182
|
+
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)
|
39183
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
39184
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
39185
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
39186
|
+
END
|
39187
|
+
) WHERE ((posts.created_at >= '2018-12-01 00:00:00' AND posts.created_at < '2019-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
|
39188
|
+
[1m[36mPost Load (1.9ms)[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 (
|
39189
|
+
SELECT CAST('2019-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-01-01 00:00:00 UTC,2019-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
39190
|
+
SELECT CAST('2019-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-02-01 00:00:00 UTC,2019-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
39191
|
+
SELECT CAST('2019-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-03-01 00:00:00 UTC,2019-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
39192
|
+
SELECT CAST('2019-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2019-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-04-01 00:00:00 UTC,2019-05-01 00:00:00 UTC' AS text) AS bin_text
|
39193
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
39194
|
+
CASE
|
39195
|
+
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)
|
39196
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
39197
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
39198
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
39199
|
+
END
|
39200
|
+
) WHERE (posts.created_at >= '2019-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
|
39201
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
39202
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
39203
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39204
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39205
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39206
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39207
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39208
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39209
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
39210
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39211
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.600974"], ["updated_at", "2020-10-06 03:58:07.600974"], ["name", "Phil"]]
|
39212
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39213
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39214
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.603703"], ["author_id", 885], ["status", 2]]
|
39215
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39216
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
39217
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39218
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.607202"], ["author_id", 885], ["status", 2]]
|
39219
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39220
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
39221
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39222
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.610231"], ["updated_at", "2020-10-06 03:58:07.610231"], ["name", "Phyllis"]]
|
39223
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39224
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39225
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.611854"], ["author_id", 886], ["status", 2]]
|
39226
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39227
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
39228
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39229
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.614692"], ["author_id", 886], ["status", 2]]
|
39230
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39231
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
39232
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39233
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39234
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
39235
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39236
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.623449"], ["updated_at", "2020-10-06 03:58:07.623449"], ["name", "Phil"]]
|
39237
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39238
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39239
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.626098"], ["author_id", 887], ["status", 2]]
|
39240
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39241
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
39242
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39243
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.630601"], ["author_id", 887], ["status", 2]]
|
39244
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39245
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
39246
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39247
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.635603"], ["updated_at", "2020-10-06 03:58:07.635603"], ["name", "Phyllis"]]
|
39248
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39249
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39250
|
+
[1m[36mPost Create (0.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.639175"], ["author_id", 888], ["status", 2]]
|
39251
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39252
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
39253
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39254
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.643574"], ["author_id", 888], ["status", 2]]
|
39255
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39256
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
39257
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39258
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39259
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
39260
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39261
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.652309"], ["updated_at", "2020-10-06 03:58:07.652309"], ["name", "Phil"]]
|
39262
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39263
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39264
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.654777"], ["author_id", 889], ["status", 2]]
|
39265
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39266
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
39267
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39268
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.657963"], ["author_id", 889], ["status", 2]]
|
39269
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39270
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT "posts".* FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('Phil'))[0m
|
39271
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39272
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39273
|
+
[1m[36mPost Exists? (0.5ms)[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]]
|
39274
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39275
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39276
|
+
[1m[36mPost Exists? (0.7ms)[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]]
|
39277
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39278
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39279
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39280
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39281
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39282
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39283
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
39284
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39285
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39286
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39287
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39288
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39289
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39290
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39291
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39292
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39293
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39294
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39295
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39296
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39297
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39298
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39299
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39300
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39301
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.701081"], ["updated_at", "2020-10-06 03:58:07.701081"], ["name", "Timmy"]]
|
39302
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39303
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39304
|
+
[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-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.703401"], ["author_id", 890], ["status", 2], ["likes", 1]]
|
39305
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39306
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39307
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39308
|
+
[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-01-12 00:00:00"], ["updated_at", "2020-10-06 03:58:07.708529"], ["author_id", 890], ["status", 2], ["likes", 2]]
|
39309
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39310
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39311
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39312
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.711777"], ["updated_at", "2020-10-06 03:58:07.711777"], ["name", "Tammy"]]
|
39313
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39314
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39315
|
+
[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", "2019-01-15 00:00:00"], ["updated_at", "2020-10-06 03:58:07.713308"], ["author_id", 891], ["status", 2], ["likes", 3]]
|
39316
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39317
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39318
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39319
|
+
[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", "2019-03-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.716319"], ["author_id", 891], ["status", 2], ["likes", 4]]
|
39320
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39321
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39322
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39323
|
+
[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-03-15 00:00:00"], ["updated_at", "2020-10-06 03:58:07.720145"], ["author_id", 891], ["status", 2], ["likes", 2]]
|
39324
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39325
|
+
[1m[36mPost Load (0.7ms)[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
|
39326
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39327
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39328
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39329
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39330
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.730127"], ["updated_at", "2020-10-06 03:58:07.730127"], ["name", "Timmy"]]
|
39331
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39332
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39333
|
+
[1m[36mPost Create (0.6ms)[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-01-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.732630"], ["author_id", 892], ["status", 2], ["likes", 1]]
|
39334
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39335
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
39336
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39337
|
+
[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-01-12 00:00:00"], ["updated_at", "2020-10-06 03:58:07.737418"], ["author_id", 892], ["status", 2], ["likes", 2]]
|
39338
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39339
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39340
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39341
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 03:58:07.742040"], ["updated_at", "2020-10-06 03:58:07.742040"], ["name", "Tammy"]]
|
39342
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39343
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39344
|
+
[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-01-15 00:00:00"], ["updated_at", "2020-10-06 03:58:07.744561"], ["author_id", 893], ["status", 2], ["likes", 3]]
|
39345
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39346
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39347
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39348
|
+
[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-03-01 00:00:00"], ["updated_at", "2020-10-06 03:58:07.748984"], ["author_id", 893], ["status", 2], ["likes", 4]]
|
39349
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39350
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
39351
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39352
|
+
[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", "2019-03-15 00:00:00"], ["updated_at", "2020-10-06 03:58:07.752843"], ["author_id", 893], ["status", 2], ["likes", 2]]
|
39353
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39354
|
+
[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" 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
|
39355
|
+
[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
|
39356
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39357
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39358
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39359
|
+
[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", "2020-10-06 03:58:07.761816"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39360
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39361
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39362
|
+
[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", "2020-10-06 03:58:07.764136"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39363
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39364
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39365
|
+
[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", "2020-10-06 03:58:07.766333"], ["title", "B"], ["status", 2], ["likes", 1]]
|
39366
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39367
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39368
|
+
[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-02 00:00:00"], ["updated_at", "2020-10-06 03:58:07.768887"], ["title", "A"], ["status", 2], ["likes", 1]]
|
39369
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39370
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
39371
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
39372
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39373
|
+
[1m[36mPost Load (1.4ms)[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 (
|
39374
|
+
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
|
39375
|
+
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
|
39376
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
39377
|
+
CASE
|
39378
|
+
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)
|
39379
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
39380
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
39381
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
39382
|
+
END
|
39383
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
39384
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39385
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39386
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39387
|
+
[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", "2020-10-06 03:58:07.788607"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39388
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39389
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39390
|
+
[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", "2020-10-06 03:58:07.791869"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39391
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39392
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39393
|
+
[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", "2020-10-06 03:58:07.794975"], ["title", "B"], ["status", 2], ["likes", 1]]
|
39394
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39395
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39396
|
+
[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-02 00:00:00"], ["updated_at", "2020-10-06 03:58:07.798241"], ["title", "A"], ["status", 2], ["likes", 1]]
|
39397
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39398
|
+
[1m[36mPost Load (0.5ms)[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
|
39399
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39400
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39401
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39402
|
+
[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", "2020-10-06 03:58:07.804695"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39403
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39404
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39405
|
+
[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", "2020-10-06 03:58:07.806811"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39406
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39407
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39408
|
+
[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", "2020-10-06 03:58:07.808976"], ["title", "B"], ["status", 2], ["likes", 1]]
|
39409
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39410
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39411
|
+
[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", "2020-10-06 03:58:07.811451"], ["title", "A"], ["status", 2], ["likes", 1]]
|
39412
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39413
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
39414
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
39415
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39416
|
+
[1m[36mPost Load (0.9ms)[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 (
|
39417
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
39418
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
39419
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
39420
|
+
CASE
|
39421
|
+
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)
|
39422
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
39423
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
39424
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
39425
|
+
END
|
39426
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
39427
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39428
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39429
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39430
|
+
[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", "2020-10-06 03:58:07.821657"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39431
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39432
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39433
|
+
[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", "2020-10-06 03:58:07.825307"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39434
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39435
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39436
|
+
[1m[36mPost Create (0.6ms)[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", "2020-10-06 03:58:07.828527"], ["title", "B"], ["status", 2], ["likes", 1]]
|
39437
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39438
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39439
|
+
[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-02 00:00:00"], ["updated_at", "2020-10-06 03:58:07.832163"], ["title", "A"], ["status", 2], ["likes", 1]]
|
39440
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39441
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
39442
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
39443
|
+
[1m[36mPost Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39444
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
39445
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
39446
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39447
|
+
[1m[36mPost Load (1.6ms)[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 (
|
39448
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
39449
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
39450
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
39451
|
+
CASE
|
39452
|
+
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)
|
39453
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
39454
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
39455
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
39456
|
+
END
|
39457
|
+
) INNER JOIN (
|
39458
|
+
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
|
39459
|
+
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
|
39460
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
39461
|
+
CASE
|
39462
|
+
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)
|
39463
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
39464
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
39465
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
39466
|
+
END
|
39467
|
+
) 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
|
39468
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39469
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39470
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39471
|
+
[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", "2020-10-06 03:58:07.932000"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39472
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39473
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39474
|
+
[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", "2020-10-06 03:58:07.935336"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39475
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39476
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39477
|
+
[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", "2020-10-06 03:58:07.937953"], ["title", "B"], ["status", 2], ["likes", 1]]
|
39478
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39479
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39480
|
+
[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-02 00:00:00"], ["updated_at", "2020-10-06 03:58:07.940967"], ["title", "A"], ["status", 2], ["likes", 1]]
|
39481
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39482
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39483
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39484
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39485
|
+
[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", "2020-10-06 03:58:07.946656"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39486
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39487
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39488
|
+
[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", "2020-10-06 03:58:07.950112"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39489
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39490
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39491
|
+
[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", "2020-10-06 03:58:07.952137"], ["title", "B"], ["status", 2], ["likes", 1]]
|
39492
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39493
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39494
|
+
[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", "2020-10-06 03:58:07.954038"], ["title", "A"], ["status", 2], ["likes", 1]]
|
39495
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39496
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
39497
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
39498
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
39499
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39500
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39501
|
+
[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", "2020-10-06 03:58:07.958671"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39502
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39503
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39504
|
+
[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", "2020-10-06 03:58:07.960526"], ["title", "A"], ["status", 2], ["likes", 2]]
|
39505
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39506
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39507
|
+
[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", "2020-10-06 03:58:07.962556"], ["title", "B"], ["status", 2], ["likes", 1]]
|
39508
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39509
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39510
|
+
[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-02 00:00:00"], ["updated_at", "2020-10-06 03:58:07.964255"], ["title", "A"], ["status", 2], ["likes", 1]]
|
39511
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39512
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
39513
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
39514
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39515
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
39516
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
39517
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39518
|
+
[1m[36mPost Load (1.7ms)[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 (
|
39519
|
+
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
|
39520
|
+
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
|
39521
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
39522
|
+
CASE
|
39523
|
+
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)
|
39524
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
39525
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
39526
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
39527
|
+
END
|
39528
|
+
) INNER JOIN (
|
39529
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
39530
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
39531
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
39532
|
+
CASE
|
39533
|
+
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)
|
39534
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
39535
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
39536
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
39537
|
+
END
|
37032
39538
|
) 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
|
37033
39539
|
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|