active_reporter 0.5.9 → 0.5.10
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 +4 -0
- data/lib/active_reporter/serializer/base.rb +1 -1
- data/lib/active_reporter/serializer/form_field.rb +1 -1
- data/lib/active_reporter/serializer/hash_table.rb +2 -2
- data/lib/active_reporter/serializer/highcharts.rb +4 -4
- data/lib/active_reporter/serializer/nested_hash.rb +1 -1
- data/lib/active_reporter/serializer/table.rb +2 -2
- data/lib/active_reporter/version.rb +1 -1
- data/spec/dummy/log/test.log +2666 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22aa53dc93b2b59ad6d4c7bafa231c2010df9593703b5d098dc695080d2013be
|
4
|
+
data.tar.gz: ce2f222ec13b3618e9e2993990d471806f5a8337f2dee4edd463e302c07deb6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37c23e44eaee1213950e478c56ba2e32d1794c48404e9555dd4160e94d1b5d2632b425d1185267a5ec201276446a0b16a321dc9d6ca65f4c0db6a58d8ebfe828
|
7
|
+
data.tar.gz: 17b09fa7abe69324fad835ca9b9693be9900e20838974eec1409ab3a22577a3835f1e401a62ad95fa8c3e8264aeee98622e77f39110a91d7465be784ca06649d
|
@@ -57,6 +57,10 @@ module ActiveReporter
|
|
57
57
|
@evaluators ||= build_axes(self.class.evaluators.slice(*(Array(params[:evaluators])+Array(params[:aggregators])).collect(&:to_sym).uniq))
|
58
58
|
end
|
59
59
|
|
60
|
+
def all_aggregators
|
61
|
+
aggregators.merge(calculators).merge(trackers).merge(evaluators)
|
62
|
+
end
|
63
|
+
|
60
64
|
def fields
|
61
65
|
[groupers, calculators.keys, trackers.keys, evaluators.keys].inject(&:merge)
|
62
66
|
end
|
@@ -85,7 +85,7 @@ module ActiveReporter
|
|
85
85
|
end
|
86
86
|
|
87
87
|
def axis_summary
|
88
|
-
y = human_aggregator_label(report.
|
88
|
+
y = human_aggregator_label(report.all_aggregators)
|
89
89
|
xes = report.groupers.map(&method(:human_dimension_label))
|
90
90
|
count = "#{report.records.count} #{record_type.pluralize(report.records.count, :_gem_active_reporter)}"
|
91
91
|
"#{y} by #{xes.to_sentence} for #{count}"
|
@@ -12,7 +12,7 @@ module ActiveReporter
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def aggregator_options
|
15
|
-
@agg_opts ||= report.
|
15
|
+
@agg_opts ||= report.all_aggregators.map { |name, agg| [human_aggregator_label(agg), name] }
|
16
16
|
end
|
17
17
|
|
18
18
|
def dimension_options
|
@@ -2,8 +2,8 @@ module ActiveReporter
|
|
2
2
|
module Serializer
|
3
3
|
class HashTable < Base
|
4
4
|
def table
|
5
|
-
fields = (report.grouper_names + report.
|
6
|
-
titles = report.groupers.map(&method(:human_dimension_label)) + report.
|
5
|
+
fields = (report.grouper_names + report.all_aggregators.keys)
|
6
|
+
titles = report.groupers.map(&method(:human_dimension_label)) + report.all_aggregators.collect { |k, v| human_aggregator_label({ k => v }) }
|
7
7
|
|
8
8
|
[fields.zip(titles).to_h] + report.hashed_data.collect { |row| row.map { |k,v| [k, (v.respond_to?(:min) ? v.min : v).to_s] }.to_h}
|
9
9
|
end
|
@@ -94,7 +94,7 @@ module ActiveReporter
|
|
94
94
|
when 1
|
95
95
|
dim1 = report.groupers.first
|
96
96
|
[{
|
97
|
-
name: human_aggregator_label(report.
|
97
|
+
name: human_aggregator_label(report.all_aggregators),
|
98
98
|
data: report.data.map { |d1| {
|
99
99
|
y: d1[:value].to_f,
|
100
100
|
tooltip: tooltip_for(dim1 => d1),
|
@@ -115,8 +115,8 @@ module ActiveReporter
|
|
115
115
|
]
|
116
116
|
end
|
117
117
|
lines << [
|
118
|
-
human_aggregator_label(report.
|
119
|
-
human_aggregator_value_label(report.
|
118
|
+
human_aggregator_label(report.all_aggregators),
|
119
|
+
human_aggregator_value_label(report.all_aggregators, xes[report.groupers.first][:value])
|
120
120
|
]
|
121
121
|
lines.map { |k, v| "<b>#{k}:</b> #{v}" }.join('<br/>')
|
122
122
|
end
|
@@ -147,7 +147,7 @@ module ActiveReporter
|
|
147
147
|
end
|
148
148
|
|
149
149
|
def y_axis_title
|
150
|
-
human_aggregator_label(report.
|
150
|
+
human_aggregator_label(report.all_aggregators)
|
151
151
|
end
|
152
152
|
|
153
153
|
def highcharts_options
|
@@ -3,7 +3,7 @@ module ActiveReporter
|
|
3
3
|
class NestedHash < Base
|
4
4
|
def table
|
5
5
|
report.hashed_data.collect { |row| row.map { |k,v| [k, (v.respond_to?(:min) ? v.min : v).to_s] }.to_h }.collect do |row|
|
6
|
-
report.grouper_names.reverse.inject(row.slice(*report.
|
6
|
+
report.grouper_names.reverse.inject(row.slice(*report.all_aggregators.keys)) { |nested_row_data, group| { row[group] => nested_row_data } }
|
7
7
|
end.reduce({}, :merge)
|
8
8
|
end
|
9
9
|
end
|
@@ -2,14 +2,14 @@ module ActiveReporter
|
|
2
2
|
module Serializer
|
3
3
|
class Table < Base
|
4
4
|
def headers
|
5
|
-
report.groupers.map(&method(:human_dimension_label)) + [human_aggregator_label(report.
|
5
|
+
report.groupers.map(&method(:human_dimension_label)) + [human_aggregator_label(report.all_aggregators)]
|
6
6
|
end
|
7
7
|
|
8
8
|
def each_row
|
9
9
|
return to_enum(__method__) unless block_given?
|
10
10
|
|
11
11
|
report.flat_data.each do |xes, y|
|
12
|
-
yield report.groupers.zip(xes).map { |d, v| human_dimension_value_label(d, v) } + [human_aggregator_value_label(report.
|
12
|
+
yield report.groupers.zip(xes).map { |d, v| human_dimension_value_label(d, v) } + [human_aggregator_value_label(report.all_aggregators, y)]
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
data/spec/dummy/log/test.log
CHANGED
@@ -39537,3 +39537,2669 @@
|
|
39537
39537
|
END
|
39538
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
|
39539
39539
|
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39540
|
+
[1m[35m (6.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
39541
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
39542
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
39543
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
39544
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39545
|
+
[1m[36mAuthor Create (7.9ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 18:13:44.753363"], ["updated_at", "2020-10-06 18:13:44.753363"], ["name", "James Joyce"]]
|
39546
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39547
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39548
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39549
|
+
[1m[36mPost Create (5.8ms)[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 18:13:44.788655"], ["updated_at", "2020-10-06 18:13:44.788655"], ["author_id", 894], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
39550
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39551
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39552
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39553
|
+
[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 18:13:44.799049"], ["updated_at", "2020-10-06 18:13:44.799049"], ["author_id", 894], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
39554
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39555
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39556
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39557
|
+
[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 18:13:44.802963"], ["updated_at", "2020-10-06 18:13:44.802963"], ["author_id", 894], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
39558
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39559
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39560
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39561
|
+
[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 18:13:44.807479"], ["updated_at", "2020-10-06 18:13:44.807479"], ["author_id", 894], ["status", 2], ["likes", 3]]
|
39562
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39563
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39564
|
+
[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 18:13:44.811900"], ["updated_at", "2020-10-06 18:13:44.811900"], ["name", "Virginia Woolf"]]
|
39565
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39566
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
39567
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39568
|
+
[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 18:13:44.817037"], ["updated_at", "2020-10-06 18:13:44.817037"], ["author_id", 895], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
39569
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39570
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
39571
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39572
|
+
[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 18:13:44.820780"], ["updated_at", "2020-10-06 18:13:44.820780"], ["author_id", 895], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
39573
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39574
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
39575
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39576
|
+
[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 18:13:44.825773"], ["updated_at", "2020-10-06 18:13:44.825773"], ["author_id", 895], ["status", 2], ["likes", 3]]
|
39577
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39578
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39579
|
+
[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 18:13:44.829670"], ["updated_at", "2020-10-06 18:13:44.829670"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
39580
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39581
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39582
|
+
[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 18:13:44.832830"], ["updated_at", "2020-10-06 18:13:44.832830"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
39583
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39584
|
+
[1m[36mPost Load (2.3ms)[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
|
39585
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
39586
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
39587
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39588
|
+
[1m[36mPost Load (7.5ms)[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 (
|
39589
|
+
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
|
39590
|
+
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
|
39591
|
+
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
|
39592
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
39593
|
+
CASE
|
39594
|
+
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)
|
39595
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
39596
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
39597
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
39598
|
+
END
|
39599
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
39600
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
39601
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
39602
|
+
[1m[36mPost Exists? (1.1ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39603
|
+
[1m[36mPost Load (2.2ms)[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 (
|
39604
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
39605
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text UNION
|
39606
|
+
SELECT 3.0 AS min, 4.0 AS max, CAST('3.0,4.0' AS text) AS bin_text
|
39607
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
39608
|
+
CASE
|
39609
|
+
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)
|
39610
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
39611
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
39612
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
39613
|
+
END
|
39614
|
+
) GROUP BY _active_reporter_dimension_likes[0m
|
39615
|
+
[1m[35m (1.1ms)[0m [1m[31mROLLBACK[0m
|
39616
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39617
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39618
|
+
[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 18:13:44.909574"], ["updated_at", "2020-10-06 18:13:44.909574"], ["name", "James Joyce"]]
|
39619
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39620
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39621
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39622
|
+
[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 18:13:44.923622"], ["updated_at", "2020-10-06 18:13:44.923622"], ["author_id", 896], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
39623
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39624
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39625
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39626
|
+
[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 18:13:44.926580"], ["updated_at", "2020-10-06 18:13:44.926580"], ["author_id", 896], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
39627
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39628
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39629
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39630
|
+
[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 18:13:44.929285"], ["updated_at", "2020-10-06 18:13:44.929285"], ["author_id", 896], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
39631
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39632
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39633
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39634
|
+
[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 18:13:44.932318"], ["updated_at", "2020-10-06 18:13:44.932318"], ["author_id", 896], ["status", 2], ["likes", 3]]
|
39635
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39636
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39637
|
+
[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 18:13:44.934478"], ["updated_at", "2020-10-06 18:13:44.934478"], ["name", "Virginia Woolf"]]
|
39638
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39639
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
39640
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39641
|
+
[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 18:13:44.936839"], ["updated_at", "2020-10-06 18:13:44.936839"], ["author_id", 897], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
39642
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39643
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
39644
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39645
|
+
[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 18:13:44.939606"], ["updated_at", "2020-10-06 18:13:44.939606"], ["author_id", 897], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
39646
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39647
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
39648
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39649
|
+
[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 18:13:44.942639"], ["updated_at", "2020-10-06 18:13:44.942639"], ["author_id", 897], ["status", 2], ["likes", 3]]
|
39650
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39651
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39652
|
+
[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 18:13:44.945440"], ["updated_at", "2020-10-06 18:13:44.945440"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
39653
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39654
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39655
|
+
[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 18:13:44.947863"], ["updated_at", "2020-10-06 18:13:44.947863"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
39656
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39657
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
39658
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
39659
|
+
[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]]
|
39660
|
+
[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 (
|
39661
|
+
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
|
39662
|
+
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
|
39663
|
+
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
|
39664
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
39665
|
+
CASE
|
39666
|
+
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)
|
39667
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
39668
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
39669
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
39670
|
+
END
|
39671
|
+
) GROUP BY _active_reporter_dimension_published_at, _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
39672
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
39673
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39674
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39675
|
+
[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 18:13:44.970346"], ["updated_at", "2020-10-06 18:13:44.970346"], ["name", "James Joyce"]]
|
39676
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39677
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39678
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39679
|
+
[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 18:13:44.973508"], ["updated_at", "2020-10-06 18:13:44.973508"], ["author_id", 898], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
39680
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39681
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39682
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39683
|
+
[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 18:13:44.976139"], ["updated_at", "2020-10-06 18:13:44.976139"], ["author_id", 898], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
39684
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39685
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39686
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39687
|
+
[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 18:13:44.978954"], ["updated_at", "2020-10-06 18:13:44.978954"], ["author_id", 898], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
39688
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39689
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
39690
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39691
|
+
[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 18:13:44.981877"], ["updated_at", "2020-10-06 18:13:44.981877"], ["author_id", 898], ["status", 2], ["likes", 3]]
|
39692
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39693
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39694
|
+
[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 18:13:44.984037"], ["updated_at", "2020-10-06 18:13:44.984037"], ["name", "Virginia Woolf"]]
|
39695
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39696
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
39697
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39698
|
+
[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 18:13:44.986658"], ["updated_at", "2020-10-06 18:13:44.986658"], ["author_id", 899], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
39699
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39700
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
39701
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39702
|
+
[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 18:13:44.989226"], ["updated_at", "2020-10-06 18:13:44.989226"], ["author_id", 899], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
39703
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39704
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
39705
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39706
|
+
[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 18:13:44.991870"], ["updated_at", "2020-10-06 18:13:44.991870"], ["author_id", 899], ["status", 2], ["likes", 3]]
|
39707
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39708
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39709
|
+
[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 18:13:44.993993"], ["updated_at", "2020-10-06 18:13:44.993993"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
39710
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39711
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39712
|
+
[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 18:13:44.995901"], ["updated_at", "2020-10-06 18:13:44.995901"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
39713
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39714
|
+
[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
|
39715
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
39716
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
39717
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39718
|
+
[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 (
|
39719
|
+
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
|
39720
|
+
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
|
39721
|
+
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
|
39722
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
39723
|
+
CASE
|
39724
|
+
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)
|
39725
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
39726
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
39727
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
39728
|
+
END
|
39729
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
39730
|
+
[1m[36mPost Load (2.4ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS LAST[0m
|
39731
|
+
[1m[36mPost Load (1.4ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author DESC NULLS FIRST[0m
|
39732
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
39733
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
39734
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39735
|
+
[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 (
|
39736
|
+
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
|
39737
|
+
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
|
39738
|
+
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
|
39739
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
39740
|
+
CASE
|
39741
|
+
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)
|
39742
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
39743
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
39744
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
39745
|
+
END
|
39746
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
39747
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
39748
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
39749
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
39750
|
+
[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 (
|
39751
|
+
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
|
39752
|
+
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
|
39753
|
+
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
|
39754
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
39755
|
+
CASE
|
39756
|
+
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)
|
39757
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
39758
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
39759
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
39760
|
+
END
|
39761
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
39762
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39763
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39764
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39765
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39766
|
+
[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 18:13:45.053509"], ["updated_at", "2020-10-06 18:13:45.053509"], ["name", "Alice"]]
|
39767
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39768
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39769
|
+
[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 18:13:45.055344"], ["updated_at", "2020-10-06 18:13:45.055344"], ["author_id", 900], ["status", 2], ["likes", 3]]
|
39770
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39771
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39772
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39773
|
+
[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 18:13:45.058366"], ["updated_at", "2020-10-06 18:13:45.058366"], ["author_id", 900], ["status", 2], ["likes", 2]]
|
39774
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39775
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39776
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39777
|
+
[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 18:13:45.061391"], ["updated_at", "2020-10-06 18:13:45.061391"], ["name", "Bob"]]
|
39778
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39779
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39780
|
+
[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 18:13:45.062908"], ["updated_at", "2020-10-06 18:13:45.062908"], ["author_id", 901], ["status", 2], ["likes", 4]]
|
39781
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39782
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39783
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39784
|
+
[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 18:13:45.065970"], ["updated_at", "2020-10-06 18:13:45.065970"], ["author_id", 901], ["status", 2], ["likes", 1]]
|
39785
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39786
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39787
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39788
|
+
[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 18:13:45.068587"], ["updated_at", "2020-10-06 18:13:45.068587"], ["author_id", 901], ["status", 2], ["likes", 5]]
|
39789
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39790
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
39791
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39792
|
+
[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 18:13:45.071650"], ["updated_at", "2020-10-06 18:13:45.071650"], ["name", "Chester"]]
|
39793
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39794
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39795
|
+
[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 18:13:45.073290"], ["updated_at", "2020-10-06 18:13:45.073290"], ["author_id", 902], ["status", 2], ["likes", 10]]
|
39796
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39797
|
+
[1m[36mPost Load (0.8ms)[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
|
39798
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39799
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39800
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39801
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39802
|
+
[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 18:13:45.081101"], ["updated_at", "2020-10-06 18:13:45.081101"], ["name", "Alice"]]
|
39803
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39804
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39805
|
+
[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 18:13:45.083242"], ["updated_at", "2020-10-06 18:13:45.083242"], ["author_id", 903], ["status", 2], ["likes", 3]]
|
39806
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39807
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39808
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39809
|
+
[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 18:13:45.086867"], ["updated_at", "2020-10-06 18:13:45.086867"], ["author_id", 903], ["status", 2], ["likes", 2]]
|
39810
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39811
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39812
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39813
|
+
[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 18:13:45.090227"], ["updated_at", "2020-10-06 18:13:45.090227"], ["name", "Bob"]]
|
39814
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39815
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39816
|
+
[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 18:13:45.091988"], ["updated_at", "2020-10-06 18:13:45.091988"], ["author_id", 904], ["status", 2], ["likes", 4]]
|
39817
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39818
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39819
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39820
|
+
[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 18:13:45.094950"], ["updated_at", "2020-10-06 18:13:45.094950"], ["author_id", 904], ["status", 2], ["likes", 1]]
|
39821
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39822
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39823
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39824
|
+
[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 18:13:45.097865"], ["updated_at", "2020-10-06 18:13:45.097865"], ["author_id", 904], ["status", 2], ["likes", 5]]
|
39825
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39826
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
39827
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39828
|
+
[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 18:13:45.101052"], ["updated_at", "2020-10-06 18:13:45.101052"], ["name", "Chester"]]
|
39829
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39830
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39831
|
+
[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 18:13:45.102974"], ["updated_at", "2020-10-06 18:13:45.102974"], ["author_id", 905], ["status", 2], ["likes", 10]]
|
39832
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39833
|
+
[1m[36mPost Load (0.9ms)[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
|
39834
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39835
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39836
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39837
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39838
|
+
[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 18:13:45.109955"], ["updated_at", "2020-10-06 18:13:45.109955"], ["name", "Alice"]]
|
39839
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39840
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39841
|
+
[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 18:13:45.111718"], ["updated_at", "2020-10-06 18:13:45.111718"], ["author_id", 906], ["status", 2], ["likes", 3]]
|
39842
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39843
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39844
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39845
|
+
[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 18:13:45.114674"], ["updated_at", "2020-10-06 18:13:45.114674"], ["author_id", 906], ["status", 2], ["likes", 2]]
|
39846
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39847
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39848
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39849
|
+
[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 18:13:45.117427"], ["updated_at", "2020-10-06 18:13:45.117427"], ["name", "Bob"]]
|
39850
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39851
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39852
|
+
[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 18:13:45.119241"], ["updated_at", "2020-10-06 18:13:45.119241"], ["author_id", 907], ["status", 2], ["likes", 4]]
|
39853
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39854
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39855
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39856
|
+
[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 18:13:45.122366"], ["updated_at", "2020-10-06 18:13:45.122366"], ["author_id", 907], ["status", 2], ["likes", 1]]
|
39857
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39858
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39859
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39860
|
+
[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 18:13:45.125921"], ["updated_at", "2020-10-06 18:13:45.125921"], ["author_id", 907], ["status", 2], ["likes", 5]]
|
39861
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39862
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
39863
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39864
|
+
[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 18:13:45.128821"], ["updated_at", "2020-10-06 18:13:45.128821"], ["name", "Chester"]]
|
39865
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39866
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39867
|
+
[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 18:13:45.130594"], ["updated_at", "2020-10-06 18:13:45.130594"], ["author_id", 908], ["status", 2], ["likes", 10]]
|
39868
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39869
|
+
[1m[36mPost Load (0.7ms)[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
|
39870
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39871
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39872
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39873
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39874
|
+
[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 18:13:45.138462"], ["updated_at", "2020-10-06 18:13:45.138462"], ["name", "Alice"]]
|
39875
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39876
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39877
|
+
[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 18:13:45.140279"], ["updated_at", "2020-10-06 18:13:45.140279"], ["author_id", 909], ["status", 2], ["likes", 3]]
|
39878
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39879
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39880
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39881
|
+
[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 18:13:45.143196"], ["updated_at", "2020-10-06 18:13:45.143196"], ["author_id", 909], ["status", 2], ["likes", 2]]
|
39882
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39883
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39884
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39885
|
+
[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 18:13:45.146038"], ["updated_at", "2020-10-06 18:13:45.146038"], ["name", "Bob"]]
|
39886
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39887
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39888
|
+
[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 18:13:45.147775"], ["updated_at", "2020-10-06 18:13:45.147775"], ["author_id", 910], ["status", 2], ["likes", 4]]
|
39889
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39890
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39891
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39892
|
+
[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 18:13:45.151123"], ["updated_at", "2020-10-06 18:13:45.151123"], ["author_id", 910], ["status", 2], ["likes", 1]]
|
39893
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39894
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39895
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39896
|
+
[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 18:13:45.154316"], ["updated_at", "2020-10-06 18:13:45.154316"], ["author_id", 910], ["status", 2], ["likes", 5]]
|
39897
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39898
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
39899
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39900
|
+
[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 18:13:45.157395"], ["updated_at", "2020-10-06 18:13:45.157395"], ["name", "Chester"]]
|
39901
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39902
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39903
|
+
[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 18:13:45.159029"], ["updated_at", "2020-10-06 18:13:45.159029"], ["author_id", 911], ["status", 2], ["likes", 10]]
|
39904
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39905
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, AVG(posts.likes) AS _report_aggregator_mean_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
39906
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
39907
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39908
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39909
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39910
|
+
[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 18:13:45.166060"], ["updated_at", "2020-10-06 18:13:45.166060"], ["name", "Alice"]]
|
39911
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39912
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39913
|
+
[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 18:13:45.167975"], ["updated_at", "2020-10-06 18:13:45.167975"], ["author_id", 912], ["status", 2], ["likes", 3]]
|
39914
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39915
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39916
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39917
|
+
[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 18:13:45.170889"], ["updated_at", "2020-10-06 18:13:45.170889"], ["author_id", 912], ["status", 2], ["likes", 2]]
|
39918
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39919
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39920
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39921
|
+
[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 18:13:45.173821"], ["updated_at", "2020-10-06 18:13:45.173821"], ["name", "Bob"]]
|
39922
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39923
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39924
|
+
[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 18:13:45.175394"], ["updated_at", "2020-10-06 18:13:45.175394"], ["author_id", 913], ["status", 2], ["likes", 4]]
|
39925
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39926
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39927
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39928
|
+
[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 18:13:45.177933"], ["updated_at", "2020-10-06 18:13:45.177933"], ["author_id", 913], ["status", 2], ["likes", 1]]
|
39929
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39930
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39931
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39932
|
+
[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 18:13:45.180716"], ["updated_at", "2020-10-06 18:13:45.180716"], ["author_id", 913], ["status", 2], ["likes", 5]]
|
39933
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39934
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
39935
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39936
|
+
[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 18:13:45.183727"], ["updated_at", "2020-10-06 18:13:45.183727"], ["name", "Chester"]]
|
39937
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39938
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39939
|
+
[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 18:13:45.185584"], ["updated_at", "2020-10-06 18:13:45.185584"], ["author_id", 914], ["status", 2], ["likes", 10]]
|
39940
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39941
|
+
[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
|
39942
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39943
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39944
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39945
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39946
|
+
[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 18:13:45.192422"], ["updated_at", "2020-10-06 18:13:45.192422"], ["name", "Alice"]]
|
39947
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39948
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39949
|
+
[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 18:13:45.194088"], ["updated_at", "2020-10-06 18:13:45.194088"], ["author_id", 915], ["status", 2], ["likes", 3]]
|
39950
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39951
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
39952
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39953
|
+
[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 18:13:45.196636"], ["updated_at", "2020-10-06 18:13:45.196636"], ["author_id", 915], ["status", 2], ["likes", 2]]
|
39954
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39955
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39956
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39957
|
+
[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 18:13:45.199990"], ["updated_at", "2020-10-06 18:13:45.199990"], ["name", "Bob"]]
|
39958
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39959
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39960
|
+
[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 18:13:45.201873"], ["updated_at", "2020-10-06 18:13:45.201873"], ["author_id", 916], ["status", 2], ["likes", 4]]
|
39961
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39962
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39963
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39964
|
+
[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 18:13:45.204795"], ["updated_at", "2020-10-06 18:13:45.204795"], ["author_id", 916], ["status", 2], ["likes", 1]]
|
39965
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39966
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
39967
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39968
|
+
[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 18:13:45.207349"], ["updated_at", "2020-10-06 18:13:45.207349"], ["author_id", 916], ["status", 2], ["likes", 5]]
|
39969
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39970
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
39971
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39972
|
+
[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 18:13:45.209941"], ["updated_at", "2020-10-06 18:13:45.209941"], ["name", "Chester"]]
|
39973
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39974
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
39975
|
+
[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 18:13:45.211492"], ["updated_at", "2020-10-06 18:13:45.211492"], ["author_id", 917], ["status", 2], ["likes", 10]]
|
39976
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
39977
|
+
[1m[36mPost Load (0.7ms)[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
|
39978
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39979
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39980
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
39981
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39982
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39983
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39984
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
39985
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39986
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
39987
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39988
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
39989
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39990
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
39991
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39992
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39993
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39994
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
39995
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
39996
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
39997
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
39998
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
39999
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40000
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40001
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40002
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40003
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40004
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40005
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40006
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40007
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40008
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40009
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40010
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40011
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40012
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40013
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40014
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40015
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40016
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40017
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40018
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
40019
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
40020
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40021
|
+
[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-06 18:13:45.248241"], ["updated_at", "2020-10-06 18:13:45.248241"], ["status", 2], ["likes", 3]]
|
40022
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40023
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40024
|
+
[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-06 18:13:45.250312"], ["updated_at", "2020-10-06 18:13:45.250312"], ["status", 2], ["likes", 10]]
|
40025
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40026
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40027
|
+
[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 18:13:45.252501"], ["updated_at", "2020-10-06 18:13:45.252501"], ["status", 2], ["likes", 1]]
|
40028
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40029
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
40030
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
40031
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40032
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40033
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
40034
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40035
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40036
|
+
[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 18:13:45.273012"], ["updated_at", "2020-10-06 18:13:45.273012"], ["status", 2], ["likes", 2]]
|
40037
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40038
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
40039
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
40040
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40041
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40042
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40043
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40044
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
40045
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40046
|
+
[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 18:13:45.279182"], ["updated_at", "2020-10-06 18:13:45.279182"], ["name", "Alice"]]
|
40047
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40048
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40049
|
+
[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 18:13:45.280785"], ["updated_at", "2020-10-06 18:13:45.280785"], ["author_id", 918], ["status", 2]]
|
40050
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40051
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
40052
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40053
|
+
[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 18:13:45.283407"], ["updated_at", "2020-10-06 18:13:45.283407"], ["name", "Bob"]]
|
40054
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40055
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40056
|
+
[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 18:13:45.284938"], ["updated_at", "2020-10-06 18:13:45.284938"], ["author_id", 919], ["status", 2]]
|
40057
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40058
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40059
|
+
[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 18:13:45.286568"], ["updated_at", "2020-10-06 18:13:45.286568"], ["status", 2]]
|
40060
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40061
|
+
[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
|
40062
|
+
[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
|
40063
|
+
[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
|
40064
|
+
[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','Bob'))[0m
|
40065
|
+
[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
|
40066
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40067
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40068
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
40069
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40070
|
+
[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 18:13:45.295405"], ["updated_at", "2020-10-06 18:13:45.295405"], ["name", "Alice"]]
|
40071
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40072
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40073
|
+
[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 18:13:45.296958"], ["updated_at", "2020-10-06 18:13:45.296958"], ["author_id", 920], ["status", 2]]
|
40074
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40075
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
40076
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40077
|
+
[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 18:13:45.299514"], ["updated_at", "2020-10-06 18:13:45.299514"], ["author_id", 920], ["status", 2]]
|
40078
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40079
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40080
|
+
[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 18:13:45.301659"], ["updated_at", "2020-10-06 18:13:45.301659"], ["status", 2]]
|
40081
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40082
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
40083
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40084
|
+
[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 18:13:45.304055"], ["updated_at", "2020-10-06 18:13:45.304055"], ["name", "Bob"]]
|
40085
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40086
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40087
|
+
[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 18:13:45.305423"], ["updated_at", "2020-10-06 18:13:45.305423"], ["author_id", 921], ["status", 2]]
|
40088
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40089
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
40090
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40091
|
+
[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 18:13:45.307592"], ["updated_at", "2020-10-06 18:13:45.307592"], ["author_id", 921], ["status", 2]]
|
40092
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40093
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
40094
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40095
|
+
[1m[36mPost Create (0.2ms)[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 18:13:45.309652"], ["updated_at", "2020-10-06 18:13:45.309652"], ["author_id", 921], ["status", 2]]
|
40096
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40097
|
+
[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
|
40098
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40099
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40100
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40101
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40102
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
40103
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40104
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40105
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40106
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40107
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40108
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40109
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40110
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40111
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40112
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40113
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40114
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40115
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40116
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40117
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40118
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40119
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40120
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40121
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40122
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40123
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40124
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40125
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40126
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40127
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40128
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40129
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40130
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40131
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40132
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40133
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40134
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40135
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40136
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40137
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40138
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40139
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40140
|
+
[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 18:13:45.351757"], ["updated_at", "2020-10-06 18:13:45.351757"], ["name", "Tammy"]]
|
40141
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40142
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40143
|
+
[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 18:13:45.353692"], ["author_id", 922], ["status", 2], ["likes", 23]]
|
40144
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40145
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40146
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40147
|
+
[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 18:13:45.356863"], ["author_id", 922], ["status", 2], ["likes", 7]]
|
40148
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40149
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40150
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40151
|
+
[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 18:13:45.359720"], ["author_id", 922], ["status", 2], ["likes", 4]]
|
40152
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40153
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40154
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40155
|
+
[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 18:13:45.362810"], ["author_id", 922], ["status", 2], ["likes", 11]]
|
40156
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40157
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40158
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40159
|
+
[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 18:13:45.366303"], ["updated_at", "2020-10-06 18:13:45.366303"], ["name", "Timmy"]]
|
40160
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40161
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40162
|
+
[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 18:13:45.368217"], ["author_id", 923], ["status", 2], ["likes", 3]]
|
40163
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40164
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40165
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40166
|
+
[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 18:13:45.371629"], ["author_id", 923], ["status", 2], ["likes", 24]]
|
40167
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40168
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40169
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40170
|
+
[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 18:13:45.374595"], ["author_id", 923], ["status", 2]]
|
40171
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40172
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40173
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40174
|
+
[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 18:13:45.377676"], ["author_id", 923], ["status", 2], ["likes", 19]]
|
40175
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40176
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40177
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40178
|
+
[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 18:13:45.381661"], ["author_id", 923], ["status", 2], ["likes", 8]]
|
40179
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40180
|
+
[1m[35m (6.0ms)[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
|
40181
|
+
[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]]
|
40182
|
+
[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 (
|
40183
|
+
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
|
40184
|
+
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
|
40185
|
+
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
|
40186
|
+
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
|
40187
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40188
|
+
CASE
|
40189
|
+
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)
|
40190
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40191
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40192
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40193
|
+
END
|
40194
|
+
) 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
|
40195
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
40196
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40197
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40198
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40199
|
+
[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 18:13:45.409714"], ["updated_at", "2020-10-06 18:13:45.409714"], ["name", "Tammy"]]
|
40200
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40201
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40202
|
+
[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 18:13:45.411978"], ["author_id", 924], ["status", 2], ["likes", 23]]
|
40203
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40204
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40205
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40206
|
+
[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 18:13:45.415735"], ["author_id", 924], ["status", 2], ["likes", 7]]
|
40207
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40208
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40209
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40210
|
+
[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 18:13:45.419547"], ["author_id", 924], ["status", 2], ["likes", 4]]
|
40211
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40212
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40213
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40214
|
+
[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 18:13:45.422358"], ["author_id", 924], ["status", 2], ["likes", 11]]
|
40215
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40216
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40217
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40218
|
+
[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 18:13:45.424894"], ["updated_at", "2020-10-06 18:13:45.424894"], ["name", "Timmy"]]
|
40219
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40220
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40221
|
+
[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 18:13:45.426683"], ["author_id", 925], ["status", 2], ["likes", 3]]
|
40222
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40223
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40224
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40225
|
+
[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 18:13:45.429425"], ["author_id", 925], ["status", 2], ["likes", 24]]
|
40226
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40227
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40228
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40229
|
+
[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-06 18:13:45.432639"], ["author_id", 925], ["status", 2]]
|
40230
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40231
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40232
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40233
|
+
[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 18:13:45.435864"], ["author_id", 925], ["status", 2], ["likes", 19]]
|
40234
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40235
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40236
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40237
|
+
[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 18:13:45.438626"], ["author_id", 925], ["status", 2], ["likes", 8]]
|
40238
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40239
|
+
[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
|
40240
|
+
[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]]
|
40241
|
+
[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 (
|
40242
|
+
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
|
40243
|
+
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
|
40244
|
+
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
|
40245
|
+
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
|
40246
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40247
|
+
CASE
|
40248
|
+
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)
|
40249
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40250
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40251
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40252
|
+
END
|
40253
|
+
) 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
|
40254
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
40255
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40256
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40257
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40258
|
+
[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 18:13:45.460344"], ["updated_at", "2020-10-06 18:13:45.460344"], ["name", "Tammy"]]
|
40259
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40260
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40261
|
+
[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 18:13:45.462220"], ["author_id", 926], ["status", 2], ["likes", 23]]
|
40262
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40263
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40264
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40265
|
+
[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 18:13:45.465275"], ["author_id", 926], ["status", 2], ["likes", 7]]
|
40266
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40267
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40268
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40269
|
+
[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 18:13:45.468732"], ["author_id", 926], ["status", 2], ["likes", 4]]
|
40270
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40271
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40272
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40273
|
+
[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 18:13:45.471748"], ["author_id", 926], ["status", 2], ["likes", 11]]
|
40274
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40275
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40276
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40277
|
+
[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 18:13:45.474820"], ["updated_at", "2020-10-06 18:13:45.474820"], ["name", "Timmy"]]
|
40278
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40279
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40280
|
+
[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 18:13:45.476305"], ["author_id", 927], ["status", 2], ["likes", 3]]
|
40281
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40282
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40283
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40284
|
+
[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 18:13:45.478987"], ["author_id", 927], ["status", 2], ["likes", 24]]
|
40285
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40286
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40287
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40288
|
+
[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 18:13:45.482590"], ["author_id", 927], ["status", 2]]
|
40289
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40290
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40291
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40292
|
+
[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 18:13:45.485982"], ["author_id", 927], ["status", 2], ["likes", 19]]
|
40293
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40294
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40295
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40296
|
+
[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 18:13:45.489643"], ["author_id", 927], ["status", 2], ["likes", 8]]
|
40297
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40298
|
+
[1m[35m (0.7ms)[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
|
40299
|
+
[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]]
|
40300
|
+
[1m[36mPost Load (1.5ms)[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 (
|
40301
|
+
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
|
40302
|
+
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
|
40303
|
+
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
|
40304
|
+
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
|
40305
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40306
|
+
CASE
|
40307
|
+
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)
|
40308
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40309
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40310
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40311
|
+
END
|
40312
|
+
) 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
|
40313
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
40314
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40315
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40316
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40317
|
+
[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 18:13:45.509414"], ["updated_at", "2020-10-06 18:13:45.509414"], ["name", "Tammy"]]
|
40318
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40319
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40320
|
+
[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 18:13:45.511354"], ["author_id", 928], ["status", 2], ["likes", 23]]
|
40321
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40322
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40323
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40324
|
+
[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 18:13:45.514362"], ["author_id", 928], ["status", 2], ["likes", 7]]
|
40325
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40326
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40327
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40328
|
+
[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-12 00:00:00"], ["updated_at", "2020-10-06 18:13:45.517740"], ["author_id", 928], ["status", 2], ["likes", 4]]
|
40329
|
+
[1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40330
|
+
[1m[36mAuthor Load (0.5ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40331
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40332
|
+
[1m[36mPost Create (1.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-06 18:13:45.522886"], ["author_id", 928], ["status", 2], ["likes", 11]]
|
40333
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40334
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40335
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40336
|
+
[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 18:13:45.527669"], ["updated_at", "2020-10-06 18:13:45.527669"], ["name", "Timmy"]]
|
40337
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40338
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40339
|
+
[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 18:13:45.529535"], ["author_id", 929], ["status", 2], ["likes", 3]]
|
40340
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40341
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40342
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40343
|
+
[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 18:13:45.533019"], ["author_id", 929], ["status", 2], ["likes", 24]]
|
40344
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40345
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40346
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40347
|
+
[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-06 18:13:45.536287"], ["author_id", 929], ["status", 2]]
|
40348
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40349
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40350
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40351
|
+
[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 18:13:45.539102"], ["author_id", 929], ["status", 2], ["likes", 19]]
|
40352
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40353
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40354
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40355
|
+
[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 18:13:45.542091"], ["author_id", 929], ["status", 2], ["likes", 8]]
|
40356
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40357
|
+
[1m[35m (0.7ms)[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
|
40358
|
+
[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]]
|
40359
|
+
[1m[36mPost Load (1.5ms)[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 (
|
40360
|
+
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
|
40361
|
+
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
|
40362
|
+
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
|
40363
|
+
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
|
40364
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40365
|
+
CASE
|
40366
|
+
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)
|
40367
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40368
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40369
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40370
|
+
END
|
40371
|
+
) 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
|
40372
|
+
[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_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
|
40373
|
+
[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
|
40374
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
40375
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40376
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40377
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40378
|
+
[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 18:13:45.570231"], ["updated_at", "2020-10-06 18:13:45.570231"], ["name", "Tammy"]]
|
40379
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40380
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40381
|
+
[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", "2018-12-18 00:00:00"], ["updated_at", "2020-10-06 18:13:45.572003"], ["author_id", 930], ["status", 2], ["likes", 23]]
|
40382
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40383
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40384
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40385
|
+
[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 18:13:45.575313"], ["author_id", 930], ["status", 2], ["likes", 7]]
|
40386
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40387
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40388
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40389
|
+
[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 18:13:45.578195"], ["author_id", 930], ["status", 2], ["likes", 4]]
|
40390
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40391
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40392
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40393
|
+
[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 18:13:45.581182"], ["author_id", 930], ["status", 2], ["likes", 11]]
|
40394
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40395
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40396
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40397
|
+
[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 18:13:45.584283"], ["updated_at", "2020-10-06 18:13:45.584283"], ["name", "Timmy"]]
|
40398
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40399
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40400
|
+
[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 18:13:45.586025"], ["author_id", 931], ["status", 2], ["likes", 3]]
|
40401
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40402
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40403
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40404
|
+
[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 18:13:45.589128"], ["author_id", 931], ["status", 2], ["likes", 24]]
|
40405
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40406
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40407
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40408
|
+
[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 18:13:45.591973"], ["author_id", 931], ["status", 2]]
|
40409
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40410
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40411
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40412
|
+
[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 18:13:45.594517"], ["author_id", 931], ["status", 2], ["likes", 19]]
|
40413
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40414
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40415
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40416
|
+
[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 18:13:45.597249"], ["author_id", 931], ["status", 2], ["likes", 8]]
|
40417
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40418
|
+
[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
|
40419
|
+
[1m[36mPost Exists? (0.8ms)[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]]
|
40420
|
+
[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 >= '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]]
|
40421
|
+
[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 (
|
40422
|
+
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
|
40423
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40424
|
+
CASE
|
40425
|
+
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)
|
40426
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40427
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40428
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40429
|
+
END
|
40430
|
+
) 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]]
|
40431
|
+
[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 (
|
40432
|
+
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
|
40433
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40434
|
+
CASE
|
40435
|
+
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)
|
40436
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40437
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40438
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40439
|
+
END
|
40440
|
+
) 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
|
40441
|
+
[1m[36mPost Load (1.5ms)[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 (
|
40442
|
+
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
|
40443
|
+
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
|
40444
|
+
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
|
40445
|
+
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
|
40446
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40447
|
+
CASE
|
40448
|
+
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)
|
40449
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40450
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40451
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40452
|
+
END
|
40453
|
+
) 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
|
40454
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
40455
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40456
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40457
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40458
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40459
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40460
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40461
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40462
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
40463
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40464
|
+
[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 18:13:45.632931"], ["updated_at", "2020-10-06 18:13:45.632931"], ["name", "Phil"]]
|
40465
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40466
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40467
|
+
[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 18:13:45.634973"], ["author_id", 932], ["status", 2]]
|
40468
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40469
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
40470
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40471
|
+
[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-06 18:13:45.638012"], ["author_id", 932], ["status", 2]]
|
40472
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40473
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
40474
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40475
|
+
[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 18:13:45.640649"], ["updated_at", "2020-10-06 18:13:45.640649"], ["name", "Phyllis"]]
|
40476
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40477
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40478
|
+
[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-06 18:13:45.642297"], ["author_id", 933], ["status", 2]]
|
40479
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40480
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
40481
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40482
|
+
[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 18:13:45.644876"], ["author_id", 933], ["status", 2]]
|
40483
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40484
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
40485
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40486
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40487
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
40488
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40489
|
+
[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 18:13:45.651230"], ["updated_at", "2020-10-06 18:13:45.651230"], ["name", "Phil"]]
|
40490
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40491
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40492
|
+
[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 18:13:45.653195"], ["author_id", 934], ["status", 2]]
|
40493
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40494
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
40495
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40496
|
+
[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-06 18:13:45.656347"], ["author_id", 934], ["status", 2]]
|
40497
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40498
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
40499
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40500
|
+
[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 18:13:45.659137"], ["updated_at", "2020-10-06 18:13:45.659137"], ["name", "Phyllis"]]
|
40501
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40502
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40503
|
+
[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-06 18:13:45.660984"], ["author_id", 935], ["status", 2]]
|
40504
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40505
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
40506
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40507
|
+
[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 18:13:45.663739"], ["author_id", 935], ["status", 2]]
|
40508
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40509
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
40510
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40511
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40512
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
40513
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40514
|
+
[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 18:13:45.670222"], ["updated_at", "2020-10-06 18:13:45.670222"], ["name", "Phil"]]
|
40515
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40516
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40517
|
+
[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-06 18:13:45.671993"], ["author_id", 936], ["status", 2]]
|
40518
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40519
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
40520
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40521
|
+
[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-06 18:13:45.674641"], ["author_id", 936], ["status", 2]]
|
40522
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40523
|
+
[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
|
40524
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
40525
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40526
|
+
[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]]
|
40527
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40528
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40529
|
+
[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]]
|
40530
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
40531
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40532
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40533
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40534
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40535
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40536
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40537
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40538
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40539
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40540
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40541
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40542
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
40543
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40544
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40545
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40546
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40547
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40548
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
40549
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40550
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40551
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40552
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40553
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40554
|
+
[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 18:13:45.709127"], ["updated_at", "2020-10-06 18:13:45.709127"], ["name", "Timmy"]]
|
40555
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40556
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40557
|
+
[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 18:13:45.711043"], ["author_id", 937], ["status", 2], ["likes", 1]]
|
40558
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40559
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40560
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40561
|
+
[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 18:13:45.713677"], ["author_id", 937], ["status", 2], ["likes", 2]]
|
40562
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40563
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40564
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40565
|
+
[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 18:13:45.717004"], ["updated_at", "2020-10-06 18:13:45.717004"], ["name", "Tammy"]]
|
40566
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40567
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40568
|
+
[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 18:13:45.718873"], ["author_id", 938], ["status", 2], ["likes", 3]]
|
40569
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40570
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40571
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40572
|
+
[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 18:13:45.721724"], ["author_id", 938], ["status", 2], ["likes", 4]]
|
40573
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40574
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40575
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40576
|
+
[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-15 00:00:00"], ["updated_at", "2020-10-06 18:13:45.724380"], ["author_id", 938], ["status", 2], ["likes", 2]]
|
40577
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40578
|
+
[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
|
40579
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
40580
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40581
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40582
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40583
|
+
[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 18:13:45.730977"], ["updated_at", "2020-10-06 18:13:45.730977"], ["name", "Timmy"]]
|
40584
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40585
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40586
|
+
[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 18:13:45.733066"], ["author_id", 939], ["status", 2], ["likes", 1]]
|
40587
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40588
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
40589
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40590
|
+
[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 18:13:45.736378"], ["author_id", 939], ["status", 2], ["likes", 2]]
|
40591
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40592
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40593
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40594
|
+
[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 18:13:45.739433"], ["updated_at", "2020-10-06 18:13:45.739433"], ["name", "Tammy"]]
|
40595
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40596
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40597
|
+
[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 18:13:45.741171"], ["author_id", 940], ["status", 2], ["likes", 3]]
|
40598
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40599
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40600
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40601
|
+
[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 18:13:45.743860"], ["author_id", 940], ["status", 2], ["likes", 4]]
|
40602
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40603
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
40604
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40605
|
+
[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-15 00:00:00"], ["updated_at", "2020-10-06 18:13:45.746406"], ["author_id", 940], ["status", 2], ["likes", 2]]
|
40606
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40607
|
+
[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
|
40608
|
+
[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
|
40609
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40610
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40611
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40612
|
+
[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 18:13:45.755150"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40613
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40614
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40615
|
+
[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 18:13:45.757452"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40616
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40617
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40618
|
+
[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 18:13:45.759531"], ["title", "B"], ["status", 2], ["likes", 1]]
|
40619
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40620
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40621
|
+
[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 18:13:45.761322"], ["title", "A"], ["status", 2], ["likes", 1]]
|
40622
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40623
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40624
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
40625
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40626
|
+
[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 18:13:45.765556"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40627
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40628
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40629
|
+
[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 18:13:45.767895"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40630
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40631
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40632
|
+
[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 18:13:45.770126"], ["title", "B"], ["status", 2], ["likes", 1]]
|
40633
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40634
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40635
|
+
[1m[36mPost Create (0.9ms)[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 18:13:45.772039"], ["title", "A"], ["status", 2], ["likes", 1]]
|
40636
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40637
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40638
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
40639
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40640
|
+
[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 18:13:45.777454"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40641
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40642
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40643
|
+
[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 18:13:45.779916"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40644
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40645
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40646
|
+
[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 18:13:45.782081"], ["title", "B"], ["status", 2], ["likes", 1]]
|
40647
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40648
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40649
|
+
[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 18:13:45.784368"], ["title", "A"], ["status", 2], ["likes", 1]]
|
40650
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40651
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
40652
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
40653
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
40654
|
+
[1m[36mPost Load (1.1ms)[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 (
|
40655
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40656
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40657
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40658
|
+
CASE
|
40659
|
+
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)
|
40660
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40661
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40662
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40663
|
+
END
|
40664
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
40665
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40666
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40667
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40668
|
+
[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 18:13:45.793175"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40669
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40670
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40671
|
+
[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 18:13:45.795371"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40672
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40673
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40674
|
+
[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 18:13:45.797550"], ["title", "B"], ["status", 2], ["likes", 1]]
|
40675
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40676
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40677
|
+
[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 18:13:45.799952"], ["title", "A"], ["status", 2], ["likes", 1]]
|
40678
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40679
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
40680
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
40681
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
40682
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
40683
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
40684
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
40685
|
+
[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 (
|
40686
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40687
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40688
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40689
|
+
CASE
|
40690
|
+
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)
|
40691
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40692
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40693
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40694
|
+
END
|
40695
|
+
) INNER JOIN (
|
40696
|
+
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
|
40697
|
+
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
|
40698
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40699
|
+
CASE
|
40700
|
+
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)
|
40701
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40702
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40703
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40704
|
+
END
|
40705
|
+
) 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
|
40706
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
40707
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
40708
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40709
|
+
[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 18:13:45.815803"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40710
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40711
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40712
|
+
[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 18:13:45.818086"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40713
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40714
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40715
|
+
[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 18:13:45.820243"], ["title", "B"], ["status", 2], ["likes", 1]]
|
40716
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40717
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40718
|
+
[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 18:13:45.822250"], ["title", "A"], ["status", 2], ["likes", 1]]
|
40719
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40720
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40721
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40722
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40723
|
+
[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 18:13:45.826401"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40724
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40725
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40726
|
+
[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 18:13:45.828722"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40727
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40728
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40729
|
+
[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 18:13:45.830895"], ["title", "B"], ["status", 2], ["likes", 1]]
|
40730
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40731
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40732
|
+
[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 18:13:45.833132"], ["title", "A"], ["status", 2], ["likes", 1]]
|
40733
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40734
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
40735
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
40736
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40737
|
+
[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 18:13:45.840798"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40738
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40739
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40740
|
+
[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 18:13:45.843381"], ["title", "A"], ["status", 2], ["likes", 2]]
|
40741
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40742
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40743
|
+
[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 18:13:45.845369"], ["title", "B"], ["status", 2], ["likes", 1]]
|
40744
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40745
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40746
|
+
[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 18:13:45.847273"], ["title", "A"], ["status", 2], ["likes", 1]]
|
40747
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40748
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
40749
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
40750
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
40751
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
40752
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
40753
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
40754
|
+
[1m[36mPost Load (1.6ms)[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 (
|
40755
|
+
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
|
40756
|
+
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
|
40757
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40758
|
+
CASE
|
40759
|
+
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)
|
40760
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40761
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40762
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40763
|
+
END
|
40764
|
+
) INNER JOIN (
|
40765
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40766
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40767
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40768
|
+
CASE
|
40769
|
+
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)
|
40770
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40771
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40772
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40773
|
+
END
|
40774
|
+
) 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
|
40775
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
40776
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40777
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40778
|
+
[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 FROM "posts" INNER JOIN (
|
40779
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40780
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40781
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40782
|
+
CASE
|
40783
|
+
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)
|
40784
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40785
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40786
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40787
|
+
END
|
40788
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes ORDER BY _active_reporter_dimension_title ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 11]]
|
40789
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40790
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40791
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes FROM "posts" INNER JOIN (
|
40792
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40793
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40794
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40795
|
+
CASE
|
40796
|
+
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)
|
40797
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40798
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40799
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40800
|
+
END
|
40801
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes ORDER BY _active_reporter_dimension_title ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 11]]
|
40802
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40803
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40804
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes FROM "posts" INNER JOIN (
|
40805
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40806
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40807
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40808
|
+
CASE
|
40809
|
+
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)
|
40810
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40811
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40812
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40813
|
+
END
|
40814
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes ORDER BY _active_reporter_dimension_title ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 11]]
|
40815
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40816
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40817
|
+
[1m[36mPost Load (1.3ms)[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 FROM "posts" INNER JOIN (
|
40818
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40819
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40820
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40821
|
+
CASE
|
40822
|
+
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)
|
40823
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40824
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40825
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40826
|
+
END
|
40827
|
+
) INNER JOIN (
|
40828
|
+
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
|
40829
|
+
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
|
40830
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40831
|
+
CASE
|
40832
|
+
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)
|
40833
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40834
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40835
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40836
|
+
END
|
40837
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 11]]
|
40838
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40839
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40840
|
+
[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, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at FROM "posts" INNER JOIN (
|
40841
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40842
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40843
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40844
|
+
CASE
|
40845
|
+
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)
|
40846
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40847
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40848
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40849
|
+
END
|
40850
|
+
) INNER JOIN (
|
40851
|
+
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
|
40852
|
+
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
|
40853
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40854
|
+
CASE
|
40855
|
+
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)
|
40856
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40857
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40858
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40859
|
+
END
|
40860
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 11]]
|
40861
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40862
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40863
|
+
[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, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at FROM "posts" INNER JOIN (
|
40864
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40865
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40866
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40867
|
+
CASE
|
40868
|
+
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)
|
40869
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40870
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40871
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40872
|
+
END
|
40873
|
+
) INNER JOIN (
|
40874
|
+
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
|
40875
|
+
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
|
40876
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40877
|
+
CASE
|
40878
|
+
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)
|
40879
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40880
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40881
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40882
|
+
END
|
40883
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 11]]
|
40884
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40885
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40886
|
+
[1m[36mPost Load (0.9ms)[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 FROM "posts" INNER JOIN (
|
40887
|
+
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
|
40888
|
+
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
|
40889
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40890
|
+
CASE
|
40891
|
+
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)
|
40892
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40893
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40894
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40895
|
+
END
|
40896
|
+
) INNER JOIN (
|
40897
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40898
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40899
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40900
|
+
CASE
|
40901
|
+
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)
|
40902
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40903
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40904
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40905
|
+
END
|
40906
|
+
) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 11]]
|
40907
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40908
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40909
|
+
[1m[36mPost Load (1.4ms)[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 FROM "posts" INNER JOIN (
|
40910
|
+
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
|
40911
|
+
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
|
40912
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40913
|
+
CASE
|
40914
|
+
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)
|
40915
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40916
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40917
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40918
|
+
END
|
40919
|
+
) INNER JOIN (
|
40920
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40921
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40922
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40923
|
+
CASE
|
40924
|
+
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)
|
40925
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40926
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40927
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40928
|
+
END
|
40929
|
+
) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 11]]
|
40930
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40931
|
+
[1m[36mPost Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" LIMIT $1[0m [["LIMIT", 11]]
|
40932
|
+
[1m[36mPost Load (1.4ms)[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 FROM "posts" INNER JOIN (
|
40933
|
+
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
|
40934
|
+
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
|
40935
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
40936
|
+
CASE
|
40937
|
+
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)
|
40938
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
40939
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
40940
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
40941
|
+
END
|
40942
|
+
) INNER JOIN (
|
40943
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
40944
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
40945
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
40946
|
+
CASE
|
40947
|
+
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)
|
40948
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
40949
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
40950
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
40951
|
+
END
|
40952
|
+
) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 11]]
|
40953
|
+
[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"]]
|
40954
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
40955
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
40956
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
40957
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40958
|
+
[1m[36mAuthor Create (0.8ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 18:17:31.496255"], ["updated_at", "2020-10-06 18:17:31.496255"], ["name", "James Joyce"]]
|
40959
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40960
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
40961
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40962
|
+
[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 18:17:31.535097"], ["updated_at", "2020-10-06 18:17:31.535097"], ["author_id", 941], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
40963
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40964
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
40965
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40966
|
+
[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 18:17:31.539421"], ["updated_at", "2020-10-06 18:17:31.539421"], ["author_id", 941], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
40967
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40968
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
40969
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40970
|
+
[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 18:17:31.543939"], ["updated_at", "2020-10-06 18:17:31.543939"], ["author_id", 941], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
40971
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40972
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
40973
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40974
|
+
[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 18:17:31.548819"], ["updated_at", "2020-10-06 18:17:31.548819"], ["author_id", 941], ["status", 2], ["likes", 3]]
|
40975
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40976
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40977
|
+
[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 18:17:31.552188"], ["updated_at", "2020-10-06 18:17:31.552188"], ["name", "Virginia Woolf"]]
|
40978
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40979
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
40980
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40981
|
+
[1m[36mPost Create (6.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 18:17:31.556092"], ["updated_at", "2020-10-06 18:17:31.556092"], ["author_id", 942], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
40982
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40983
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
40984
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40985
|
+
[1m[36mPost Create (1.1ms)[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 18:17:31.567918"], ["updated_at", "2020-10-06 18:17:31.567918"], ["author_id", 942], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
40986
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40987
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
40988
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40989
|
+
[1m[36mPost Create (1.1ms)[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 18:17:31.572608"], ["updated_at", "2020-10-06 18:17:31.572608"], ["author_id", 942], ["status", 2], ["likes", 3]]
|
40990
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40991
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40992
|
+
[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 18:17:31.577863"], ["updated_at", "2020-10-06 18:17:31.577863"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
40993
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40994
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
40995
|
+
[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-06 18:17:31.580873"], ["updated_at", "2020-10-06 18:17:31.580873"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
40996
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
40997
|
+
[1m[36mPost Load (2.5ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_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
|
40998
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
40999
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
41000
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
41001
|
+
[1m[36mPost Load (1.8ms)[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 (
|
41002
|
+
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
|
41003
|
+
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
|
41004
|
+
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
|
41005
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
41006
|
+
CASE
|
41007
|
+
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)
|
41008
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
41009
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
41010
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
41011
|
+
END
|
41012
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
41013
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
41014
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
41015
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
41016
|
+
[1m[36mPost Load (1.9ms)[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 (
|
41017
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
41018
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text UNION
|
41019
|
+
SELECT 3.0 AS min, 4.0 AS max, CAST('3.0,4.0' AS text) AS bin_text
|
41020
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
41021
|
+
CASE
|
41022
|
+
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)
|
41023
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
41024
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
41025
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
41026
|
+
END
|
41027
|
+
) GROUP BY _active_reporter_dimension_likes[0m
|
41028
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
41029
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
41030
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41031
|
+
[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 18:17:31.636456"], ["updated_at", "2020-10-06 18:17:31.636456"], ["name", "James Joyce"]]
|
41032
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41033
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
41034
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41035
|
+
[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 18:17:31.639786"], ["updated_at", "2020-10-06 18:17:31.639786"], ["author_id", 943], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
41036
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41037
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
41038
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41039
|
+
[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 18:17:31.643384"], ["updated_at", "2020-10-06 18:17:31.643384"], ["author_id", 943], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
41040
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41041
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
41042
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41043
|
+
[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 18:17:31.646698"], ["updated_at", "2020-10-06 18:17:31.646698"], ["author_id", 943], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
41044
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41045
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
41046
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41047
|
+
[1m[36mPost Create (1.1ms)[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 18:17:31.649775"], ["updated_at", "2020-10-06 18:17:31.649775"], ["author_id", 943], ["status", 2], ["likes", 3]]
|
41048
|
+
[1m[35m (4.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41049
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41050
|
+
[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 18:17:31.657145"], ["updated_at", "2020-10-06 18:17:31.657145"], ["name", "Virginia Woolf"]]
|
41051
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41052
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
41053
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41054
|
+
[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 18:17:31.659733"], ["updated_at", "2020-10-06 18:17:31.659733"], ["author_id", 944], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
41055
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41056
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
41057
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41058
|
+
[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 18:17:31.663011"], ["updated_at", "2020-10-06 18:17:31.663011"], ["author_id", 944], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
41059
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41060
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
41061
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41062
|
+
[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 18:17:31.665754"], ["updated_at", "2020-10-06 18:17:31.665754"], ["author_id", 944], ["status", 2], ["likes", 3]]
|
41063
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41064
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41065
|
+
[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 18:17:31.668306"], ["updated_at", "2020-10-06 18:17:31.668306"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
41066
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41067
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41068
|
+
[1m[36mPost Create (0.6ms)[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 18:17:31.670380"], ["updated_at", "2020-10-06 18:17:31.670380"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
41069
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41070
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
41071
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
41072
|
+
[1m[36mPost Exists? (0.5ms)[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]]
|
41073
|
+
[1m[36mPost Load (2.1ms)[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 (
|
41074
|
+
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
|
41075
|
+
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
|
41076
|
+
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
|
41077
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
41078
|
+
CASE
|
41079
|
+
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)
|
41080
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
41081
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
41082
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
41083
|
+
END
|
41084
|
+
) GROUP BY _active_reporter_dimension_published_at, _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
41085
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
41086
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
41087
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41088
|
+
[1m[36mAuthor Create (1.0ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2020-10-06 18:17:31.695504"], ["updated_at", "2020-10-06 18:17:31.695504"], ["name", "James Joyce"]]
|
41089
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41090
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
41091
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41092
|
+
[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 18:17:31.701315"], ["updated_at", "2020-10-06 18:17:31.701315"], ["author_id", 945], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
41093
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41094
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
41095
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41096
|
+
[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 18:17:31.704905"], ["updated_at", "2020-10-06 18:17:31.704905"], ["author_id", 945], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
41097
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41098
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
41099
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41100
|
+
[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 18:17:31.707959"], ["updated_at", "2020-10-06 18:17:31.707959"], ["author_id", 945], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
41101
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41102
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
41103
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41104
|
+
[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 18:17:31.711022"], ["updated_at", "2020-10-06 18:17:31.711022"], ["author_id", 945], ["status", 2], ["likes", 3]]
|
41105
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41106
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41107
|
+
[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 18:17:31.713860"], ["updated_at", "2020-10-06 18:17:31.713860"], ["name", "Virginia Woolf"]]
|
41108
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41109
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
41110
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41111
|
+
[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 18:17:31.716542"], ["updated_at", "2020-10-06 18:17:31.716542"], ["author_id", 946], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
41112
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41113
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
41114
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41115
|
+
[1m[36mPost Create (0.7ms)[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 18:17:31.720046"], ["updated_at", "2020-10-06 18:17:31.720046"], ["author_id", 946], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
41116
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41117
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
41118
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41119
|
+
[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 18:17:31.723287"], ["updated_at", "2020-10-06 18:17:31.723287"], ["author_id", 946], ["status", 2], ["likes", 3]]
|
41120
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41121
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41122
|
+
[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-06 18:17:31.725527"], ["updated_at", "2020-10-06 18:17:31.725527"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
41123
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41124
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41125
|
+
[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 18:17:31.727643"], ["updated_at", "2020-10-06 18:17:31.727643"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
41126
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41127
|
+
[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_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
|
41128
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
41129
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
41130
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
41131
|
+
[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 (
|
41132
|
+
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
|
41133
|
+
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
|
41134
|
+
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
|
41135
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
41136
|
+
CASE
|
41137
|
+
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)
|
41138
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
41139
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
41140
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
41141
|
+
END
|
41142
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
41143
|
+
[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
|
41144
|
+
[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 DESC NULLS FIRST[0m
|
41145
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
41146
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
41147
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
41148
|
+
[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 (
|
41149
|
+
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
|
41150
|
+
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
|
41151
|
+
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
|
41152
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
41153
|
+
CASE
|
41154
|
+
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)
|
41155
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
41156
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
41157
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
41158
|
+
END
|
41159
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
41160
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
41161
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
41162
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
41163
|
+
[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 (
|
41164
|
+
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
|
41165
|
+
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
|
41166
|
+
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
|
41167
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
41168
|
+
CASE
|
41169
|
+
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)
|
41170
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
41171
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
41172
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
41173
|
+
END
|
41174
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
41175
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
41176
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
41177
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
41178
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41179
|
+
[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 18:17:31.778309"], ["updated_at", "2020-10-06 18:17:31.778309"], ["name", "Alice"]]
|
41180
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41181
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41182
|
+
[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 18:17:31.780147"], ["updated_at", "2020-10-06 18:17:31.780147"], ["author_id", 947], ["status", 2], ["likes", 3]]
|
41183
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41184
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
41185
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41186
|
+
[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 18:17:31.782745"], ["updated_at", "2020-10-06 18:17:31.782745"], ["author_id", 947], ["status", 2], ["likes", 2]]
|
41187
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41188
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
41189
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41190
|
+
[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 18:17:31.786194"], ["updated_at", "2020-10-06 18:17:31.786194"], ["name", "Bob"]]
|
41191
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41192
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41193
|
+
[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 18:17:31.787951"], ["updated_at", "2020-10-06 18:17:31.787951"], ["author_id", 948], ["status", 2], ["likes", 4]]
|
41194
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41195
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
41196
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41197
|
+
[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 18:17:31.790490"], ["updated_at", "2020-10-06 18:17:31.790490"], ["author_id", 948], ["status", 2], ["likes", 1]]
|
41198
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41199
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
41200
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41201
|
+
[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 18:17:31.793093"], ["updated_at", "2020-10-06 18:17:31.793093"], ["author_id", 948], ["status", 2], ["likes", 5]]
|
41202
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41203
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
41204
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41205
|
+
[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 18:17:31.795974"], ["updated_at", "2020-10-06 18:17:31.795974"], ["name", "Chester"]]
|
41206
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41207
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41208
|
+
[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 18:17:31.797536"], ["updated_at", "2020-10-06 18:17:31.797536"], ["author_id", 949], ["status", 2], ["likes", 10]]
|
41209
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41210
|
+
[1m[36mPost Load (0.8ms)[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
|
41211
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
41212
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
41213
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
41214
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41215
|
+
[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 18:17:31.804643"], ["updated_at", "2020-10-06 18:17:31.804643"], ["name", "Alice"]]
|
41216
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41217
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41218
|
+
[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 18:17:31.806388"], ["updated_at", "2020-10-06 18:17:31.806388"], ["author_id", 950], ["status", 2], ["likes", 3]]
|
41219
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41220
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
41221
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41222
|
+
[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 18:17:31.809181"], ["updated_at", "2020-10-06 18:17:31.809181"], ["author_id", 950], ["status", 2], ["likes", 2]]
|
41223
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41224
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
41225
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41226
|
+
[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 18:17:31.812485"], ["updated_at", "2020-10-06 18:17:31.812485"], ["name", "Bob"]]
|
41227
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41228
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41229
|
+
[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 18:17:31.814394"], ["updated_at", "2020-10-06 18:17:31.814394"], ["author_id", 951], ["status", 2], ["likes", 4]]
|
41230
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41231
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
41232
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41233
|
+
[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 18:17:31.817280"], ["updated_at", "2020-10-06 18:17:31.817280"], ["author_id", 951], ["status", 2], ["likes", 1]]
|
41234
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41235
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
41236
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41237
|
+
[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 18:17:31.820101"], ["updated_at", "2020-10-06 18:17:31.820101"], ["author_id", 951], ["status", 2], ["likes", 5]]
|
41238
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41239
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
41240
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41241
|
+
[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 18:17:31.822733"], ["updated_at", "2020-10-06 18:17:31.822733"], ["name", "Chester"]]
|
41242
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41243
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41244
|
+
[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 18:17:31.824308"], ["updated_at", "2020-10-06 18:17:31.824308"], ["author_id", 952], ["status", 2], ["likes", 10]]
|
41245
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41246
|
+
[1m[36mPost Load (0.6ms)[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
|
41247
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
41248
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
41249
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
41250
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41251
|
+
[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 18:17:31.831221"], ["updated_at", "2020-10-06 18:17:31.831221"], ["name", "Alice"]]
|
41252
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41253
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41254
|
+
[1m[36mPost Create (6.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 18:17:31.833070"], ["updated_at", "2020-10-06 18:17:31.833070"], ["author_id", 953], ["status", 2], ["likes", 3]]
|
41255
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41256
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
41257
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41258
|
+
[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 18:17:31.842266"], ["updated_at", "2020-10-06 18:17:31.842266"], ["author_id", 953], ["status", 2], ["likes", 2]]
|
41259
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41260
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
41261
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41262
|
+
[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 18:17:31.845088"], ["updated_at", "2020-10-06 18:17:31.845088"], ["name", "Bob"]]
|
41263
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41264
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41265
|
+
[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 18:17:31.846873"], ["updated_at", "2020-10-06 18:17:31.846873"], ["author_id", 954], ["status", 2], ["likes", 4]]
|
41266
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41267
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
41268
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41269
|
+
[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 18:17:31.849634"], ["updated_at", "2020-10-06 18:17:31.849634"], ["author_id", 954], ["status", 2], ["likes", 1]]
|
41270
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41271
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
41272
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41273
|
+
[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 18:17:31.852459"], ["updated_at", "2020-10-06 18:17:31.852459"], ["author_id", 954], ["status", 2], ["likes", 5]]
|
41274
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41275
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
41276
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41277
|
+
[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 18:17:31.855176"], ["updated_at", "2020-10-06 18:17:31.855176"], ["name", "Chester"]]
|
41278
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41279
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41280
|
+
[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 18:17:31.856672"], ["updated_at", "2020-10-06 18:17:31.856672"], ["author_id", 955], ["status", 2], ["likes", 10]]
|
41281
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41282
|
+
[1m[36mPost Load (0.7ms)[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
|
41283
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
41284
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
41285
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
41286
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41287
|
+
[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 18:17:31.863130"], ["updated_at", "2020-10-06 18:17:31.863130"], ["name", "Alice"]]
|
41288
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
41289
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
41290
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id&q |