active_reporter 0.5.9 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a20dbac1b69255c7219dcdbdb71bcc5884ae8d8964e7c87cf5c4f89baaf18d6a
4
- data.tar.gz: 5352fbc91177cee2b242a2164a6e05db8acaebc9d67efce43c8f0b4897df9b9c
3
+ metadata.gz: 328853439d1443c9211a3a15768ae3b4d2bb9c1bb956b6a61543317d9f297ff4
4
+ data.tar.gz: 5ff7183c93c98df405454adaec391d246478df086990d9017cf334cae635817d
5
5
  SHA512:
6
- metadata.gz: 943fe66295a65dd7984d4785f003d717f808c156787577932b217fc75923886771d887e81a09b10a2307c1536fc6293479178b39e658f00c41d8e6fa6a335fe8
7
- data.tar.gz: a55aa6e716224d20f15488a7d9a9308d3d7d630fb31e1ca1847fb7d72f35ec59e81f12b553667e47660ea6a0ba8aa341d64ab8575be0fb690fb45c4fd31640f7
6
+ metadata.gz: 556eb214e77059c173acb6a0a596d4aa53d3a6e39a9eb8bd8536204672b5de2619c452af824b2460e42301d4d82fd616f8c4c4484bfa68e0fb74d7058d2dbf9d
7
+ data.tar.gz: d2f29670357f0abba889e4d9b72858e4635abcc73f24225d45fb51558e6bbb712039a49a2d347a1ce65454c6989d6e4a8196b05d34c37da268844f3f63ef2e4a
@@ -106,7 +106,7 @@ module ActiveReporter
106
106
  end
107
107
 
108
108
  def invalid_param!(param_key, message)
109
- raise InvalidParamsError, "Invalid value for params[:dimensions] [:#{name}][:#{param_key}]: #{message}"
109
+ raise InvalidParamsError, "Invalid value for params[:dimensions][:#{name}][:#{param_key}]\n :#{param_key} #{message}"
110
110
  end
111
111
 
112
112
  def table_name
@@ -100,7 +100,7 @@ module ActiveReporter
100
100
  bin_max = filter_values_for(:max).present? ? (max - bin_width) : max
101
101
 
102
102
  bin_count = (bin_max - bin_start)/(bin_width)
103
- invalid_param!(:bin_width, "is too small for the domain; would generate #{bin_count} bins") if bin_count > max_bins
103
+ invalid_param!(:bin_width, "is too small for the domain; would generate #{bin_count.to_i} bins") if bin_count > max_bins
104
104
 
105
105
  bin_edge = bin_start
106
106
  bins = []
@@ -6,18 +6,24 @@ module ActiveReporter
6
6
  def group_values
7
7
  return filter_values if filtering?
8
8
 
9
- # i = report.groupers.key(self)
10
- all_values & report.raw_data.keys.map { |x| x[0] }.uniq
9
+ all_values & report_values
11
10
  end
12
11
 
13
12
  def all_values
14
- enum_values.keys.unshift(nil)
13
+ enum_values.keys.tap { |values| values.unshift(nil) unless values.include?(nil) }.uniq
15
14
  end
16
15
 
17
16
  private
18
17
 
19
18
  def enum_values
20
- model.defined_enums[attribute.to_s]
19
+ model.defined_enums[attribute.to_s] || {}
20
+ end
21
+
22
+ def report_values
23
+ return [] if report.raw_data.nil?
24
+
25
+ i = report.groupers.index(self)
26
+ report.raw_data.keys.map { |x| x[i] }.uniq
21
27
  end
22
28
 
23
29
  def sanitize_sql_value(value)
@@ -11,7 +11,7 @@ module ActiveReporter
11
11
  def validate_params!
12
12
  super
13
13
 
14
- invalid_param!(:bin_width, "must be a hash of one of #{STEPS} to an integer") if params.key?(:bin_width) && !valid_duration?(params[:bin_width])
14
+ invalid_param!(:bin_width, "must be a valid width value or a hash where each hash keys is a valid value and each hash value\n is interger representing the count of the key width\n valid :bin_width values include #{STEPS.to_sentence}.") if params.key?(:bin_width) && !valid_duration?(params[:bin_width])
15
15
  end
16
16
 
17
17
  def bin_width
@@ -42,18 +42,22 @@ module ActiveReporter
42
42
  case params[:bin_width]
43
43
  when Hash
44
44
  params[:bin_width].map { |step, n| n.send(step) }.sum
45
- when String
46
- n, step = params[:bin_width].split.map(&:strip)
45
+ when String, Symbol
46
+ n, step = params[:bin_width].to_s.split.map(&:strip)
47
+ if step.nil?
48
+ step = n
49
+ n = 1
50
+ end
47
51
  n.to_i.send(step)
48
52
  end
49
53
  end
50
54
 
51
- def valid_duration?(d)
52
- case d
55
+ def valid_duration?(duration)
56
+ case duration
53
57
  when Hash
54
- d.all? { |step, n| step.to_sym.in?(STEPS) && n.is_a?(Numeric) }
55
- when String
56
- d =~ DURATION_PATTERN
58
+ duration.all? { |step, n| step.to_s.pluralize(:_gem_active_reporter).to_sym.in?(STEPS) && n.is_a?(Numeric) }
59
+ when String, Symbol
60
+ duration.to_s.pluralize(:_gem_active_reporter).to_sym.in?(STEPS) || duration =~ DURATION_PATTERN
57
61
  else
58
62
  false
59
63
  end
@@ -197,7 +197,7 @@ module ActiveReporter
197
197
  def total
198
198
  results = @total_data || total_report.raw_data
199
199
 
200
- results.merge!(results.collect do |row, value|
200
+ results.deep_merge!(results.collect do |row, value|
201
201
  calculators.collect do |name, calculator|
202
202
  row_data = hash_raw_row(row, value, ['totals'])
203
203
  calc_report = parent_report.total_report
@@ -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
@@ -41,7 +41,7 @@ module ActiveReporter
41
41
  if calculator.aggregator.nil?
42
42
  add_invalid_param_error(:calculator, ":#{calculator.name} must define an aggregator (should be in #{self.class.aggregator.keys})")
43
43
  elsif aggregators.exclude?(calculator.aggregator)
44
- add_invalid_param_error(:calculator, ":#{calculator.name} defines an valid aggregator :#{calculator.aggregator} (should be in #{self.class.aggregators.keys})")
44
+ add_invalid_param_error(:calculator, ":#{calculator.name} defines an invalid aggregator :#{calculator.aggregator} (should be in #{self.class.aggregators.keys})")
45
45
  end
46
46
  end
47
47
  end
@@ -55,7 +55,7 @@ module ActiveReporter
55
55
  if tracker.aggregator.nil?
56
56
  add_invalid_param_error(:tracker, ":#{tracker.name} must define an aggregator (should be in #{self.class.aggregator.keys})")
57
57
  elsif aggregators.exclude?(tracker.aggregator)
58
- add_invalid_param_error(:tracker, ":#{tracker.name} defines an valid aggregator :#{tracker.aggregator} (should be in #{self.class.aggregators.keys})")
58
+ add_invalid_param_error(:tracker, ":#{tracker.name} defines an invalid aggregator :#{tracker.aggregator} (should be in #{self.class.aggregators.keys})")
59
59
  end
60
60
  end
61
61
  end
@@ -85,7 +85,7 @@ module ActiveReporter
85
85
  end
86
86
 
87
87
  def axis_summary
88
- y = human_aggregator_label(report.aggregators)
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.aggregators.map { |name, agg| [human_aggregator_label(agg), name] }
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.aggregators.keys)
6
- titles = report.groupers.map(&method(:human_dimension_label)) + report.aggregators.collect { |k, v| human_aggregator_label({ k => v }) }
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.aggregators),
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.aggregators),
119
- human_aggregator_value_label(report.aggregators, xes[report.groupers.first][:value])
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.aggregators)
150
+ human_aggregator_label(report.all_aggregators)
151
151
  end
152
152
 
153
153
  def highcharts_options
@@ -3,8 +3,8 @@ 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.aggregators.keys)) { |nested_row_data, group| { row[group] => nested_row_data } }
7
- end.reduce({}, :merge)
6
+ report.grouper_names.reverse.inject(row.slice(*report.all_aggregators.keys)) { |nested_row_data, group| { row[group] => nested_row_data } }
7
+ end.reduce({}, :deep_merge)
8
8
  end
9
9
  end
10
10
  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.aggregators)]
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.aggregators, y)]
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
 
@@ -1,2 +1,3 @@
1
1
  require 'active_reporter/tracker/base'
2
2
  require 'active_reporter/tracker/delta'
3
+ require 'active_reporter/tracker/value'
@@ -0,0 +1,9 @@
1
+ module ActiveReporter
2
+ module Tracker
3
+ class Value < ActiveReporter::Tracker::Base
4
+ def track(_, prior_row)
5
+ prior_row[prior_aggregator] if prior_row.nil?
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module ActiveReporter
2
- VERSION = "0.5.9"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -1,94 +1,47 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe ActiveReporter::Dimension::Enum do
4
- def new_dimension(dimension_params = {}, report_params = {}, opts = { model: :post })
5
- report_params[:dimensions] = dimension_params
6
- ActiveReporter::Dimension::Enum.new(
7
- :status,
8
- OpenStruct.new(params: report_params, groupers: { status: {}, category: {} }, raw_data: {
9
- ['published', 'post_count'] => 5, ['published', 'post_total'] => 500.00, ['published', 'post_average'] => 100.00,
10
- ['archived', 'post_count'] => 7, ['archived', 'post_total'] => 530.25, ['archived', 'post_average'] => 75.75,
11
- }),
12
- opts
13
- )
14
- end
15
-
16
- def status_dimension(report)
17
- described_class.new(:status, report, model: :posts, attribute: :status)
18
- end
4
+ let(:report_model) { :post }
5
+ let(:filter_values) { nil }
6
+ let(:status_dimension_options) { { only: filter_values }.compact }
7
+ let(:report) { OpenStruct.new(params: { dimensions: { status: status_dimension_options } }, groupers: [:status, :category], raw_data: raw_data) }
8
+
9
+ let(:raw_data) { {
10
+ ['published', 'post_count'] => 5, ['published', 'post_total'] => 500.00, ['published', 'post_average'] => 100.00,
11
+ ['archived', 'post_count'] => 7, ['archived', 'post_total'] => 530.25, ['archived', 'post_average'] => 75.75,
12
+ } }
13
+
14
+ let(:enum_values) { { 'draft' => 0, 'unpublished' => 1, 'published' => 2, 'archived' => 3 } }
15
+ let(:group_values) { ['published', 'archived'] }
16
+ let(:all_values) { enum_values.keys.unshift(nil) }
17
+
18
+ let(:status_dimension) do
19
+ dimension = ActiveReporter::Dimension::Enum.new(:status, report, { model: report_model, only: filter_values })
20
+ allow(dimension).to receive(:enum_values).and_return(enum_values)
21
+ report.groupers[report.groupers.index(:status)] = dimension if report.groupers.include?(:status)
19
22
 
20
- def author_dimension(report)
21
- described_class.new(:author, report, model: :authors, attribute: :name, relation: ->(r) { r.joins(
22
- "LEFT OUTER JOIN authors ON authors.id = posts.author_id") })
23
+ dimension
23
24
  end
24
25
 
25
26
  describe '#group_values' do
26
- # it 'echoes filter_values if filtering' do
27
- # dimension = status_dimension(OpenStruct.new(params: {
28
- # groupers: [:status]
29
- # }))
30
- # expect(dimension.group_values).to eq [nil, 'draft', 'unpublished', 'published', 'archived']
31
- # end
27
+ context 'when filtering' do
28
+ let(:filter_values) { ['unpublished', 'published', 'archived'] }
32
29
 
30
+ it 'returns filter_values' do
31
+ expect(status_dimension).to be_filtering
32
+ expect(status_dimension.group_values).to eq filter_values
33
+ end
34
+ end
33
35
 
34
- it 'determines #filtering?' do
35
- dimension = new_dimension({ status: {}, category: {} }, { groupers: [:status] })
36
- expect(dimension).not_to be_filtering
37
- expect(dimension.group_values).to match %w(published archived)
36
+ it 'returns group enum values' do
37
+ expect(status_dimension).not_to be_filtering
38
+ expect(status_dimension.group_values).to match group_values
38
39
  end
39
40
  end
40
41
 
41
- # describe '#all_values' do
42
- # it 'returns model enum values' do
43
- # dimension = author_dimension(OpenStruct.new(params: {
44
- # dimensions: { author: { only: [nil, 'draft', 'unpublished', 'published', 'archived'] } }
45
- # }))
46
- # expect(dimension.all_values).to eq described_class.
47
- # end
48
- # end
49
-
50
- # describe '#filter' do
51
- # it 'filters to rows matching at least one value' do
52
- # p1 = create(:post, author: 'Alice')
53
- # p2 = create(:post, author: 'Bob')
54
- # p3 = create(:post, author: nil)
55
-
56
- # def filter_by(author_values)
57
- # report = OpenStruct.new(
58
- # table_name: 'posts',
59
- # params: { dimensions: { author: { only: author_values } } }
60
- # )
61
- # dimension = author_dimension(report)
62
- # dimension.filter(dimension.relate(Post))
63
- # end
64
-
65
- # expect(filter_by(['Alice'])).to eq [p1]
66
- # expect(filter_by([nil])).to eq [p3]
67
- # expect(filter_by(['Alice', nil])).to eq [p1, p3]
68
- # expect(filter_by(['Alice', 'Bob'])).to eq [p1, p2]
69
- # expect(filter_by([])).to eq []
70
- # end
71
- # end
72
-
73
- # describe '#group' do
74
- # it 'groups the relation by the exact value of the SQL expression' do
75
- # p1 = create(:post, author: 'Alice')
76
- # p2 = create(:post, author: 'Alice')
77
- # p3 = create(:post, author: nil)
78
- # p4 = create(:post, author: 'Bob')
79
- # p5 = create(:post, author: 'Bob')
80
- # p6 = create(:post, author: 'Bob')
81
-
82
- # report = OpenStruct.new(table_name: 'posts', params: {})
83
- # dimension = author_dimension(report)
84
-
85
- # results = dimension.group(dimension.relate(Post)).select("COUNT(*) AS count").map do |r|
86
- # r.attributes.values_at(dimension.send(:sql_value_name), 'count')
87
- # end
88
-
89
- # expect(results).to eq [[nil, 1], ['Alice', 2], ['Bob', 3]]
90
- # end
91
- # end
92
-
93
-
42
+ describe '#all_values' do
43
+ it 'returns model enum values' do
44
+ expect(status_dimension.all_values).to match all_values
45
+ end
46
+ end
94
47
  end
@@ -39535,5 +39535,57565 @@
39535
39535
  WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
39536
39536
  ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
39537
39537
  END
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
39539
+  (0.3ms) ROLLBACK
39540
+  (6.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
39541
+  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
39542
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
39543
+  (0.3ms) BEGIN
39544
+  (0.2ms) SAVEPOINT active_record_1
39545
+ Author Create (7.9ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:44.753363"], ["updated_at", "2020-10-06 18:13:44.753363"], ["name", "James Joyce"]]
39546
+  (0.3ms) RELEASE SAVEPOINT active_record_1
39547
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39548
+  (0.2ms) SAVEPOINT active_record_1
39549
+ Post Create (5.8ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
39551
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39552
+  (0.2ms) SAVEPOINT active_record_1
39553
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39555
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39556
+  (0.2ms) SAVEPOINT active_record_1
39557
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39559
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39560
+  (0.2ms) SAVEPOINT active_record_1
39561
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39563
+  (0.2ms) SAVEPOINT active_record_1
39564
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:44.811900"], ["updated_at", "2020-10-06 18:13:44.811900"], ["name", "Virginia Woolf"]]
39565
+  (0.3ms) RELEASE SAVEPOINT active_record_1
39566
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
39567
+  (0.2ms) SAVEPOINT active_record_1
39568
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39570
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
39571
+  (0.2ms) SAVEPOINT active_record_1
39572
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39574
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
39575
+  (0.2ms) SAVEPOINT active_record_1
39576
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39578
+  (0.2ms) SAVEPOINT active_record_1
39579
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39581
+  (0.2ms) SAVEPOINT active_record_1
39582
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
39584
+ Post Load (2.3ms) SELECT 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
39585
+  (0.8ms) SELECT MIN(posts.published_at) FROM "posts"
39586
+  (0.5ms) SELECT MAX(posts.published_at) FROM "posts"
39587
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
39588
+ Post Load (7.5ms) SELECT _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
39600
+  (0.7ms) SELECT MIN(posts.likes) FROM "posts"
39601
+  (0.5ms) SELECT MAX(posts.likes) FROM "posts"
39602
+ Post Exists? (1.1ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
39603
+ Post Load (2.2ms) SELECT _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
39615
+  (1.1ms) ROLLBACK
39616
+  (0.2ms) BEGIN
39617
+  (0.2ms) SAVEPOINT active_record_1
39618
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:44.909574"], ["updated_at", "2020-10-06 18:13:44.909574"], ["name", "James Joyce"]]
39619
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39620
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39621
+  (0.2ms) SAVEPOINT active_record_1
39622
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39624
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39625
+  (0.2ms) SAVEPOINT active_record_1
39626
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39628
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39629
+  (0.2ms) SAVEPOINT active_record_1
39630
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39632
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39633
+  (0.2ms) SAVEPOINT active_record_1
39634
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39636
+  (0.1ms) SAVEPOINT active_record_1
39637
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:44.934478"], ["updated_at", "2020-10-06 18:13:44.934478"], ["name", "Virginia Woolf"]]
39638
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39639
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
39640
+  (0.2ms) SAVEPOINT active_record_1
39641
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39643
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
39644
+  (0.2ms) SAVEPOINT active_record_1
39645
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39647
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
39648
+  (0.2ms) SAVEPOINT active_record_1
39649
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39651
+  (0.2ms) SAVEPOINT active_record_1
39652
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39654
+  (0.2ms) SAVEPOINT active_record_1
39655
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39657
+  (0.6ms) SELECT MIN(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"
39658
+  (0.5ms) SELECT MAX(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"
39659
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
39660
+ Post Load (1.2ms) SELECT _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
39672
+  (0.4ms) ROLLBACK
39673
+  (0.1ms) BEGIN
39674
+  (0.1ms) SAVEPOINT active_record_1
39675
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:44.970346"], ["updated_at", "2020-10-06 18:13:44.970346"], ["name", "James Joyce"]]
39676
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39677
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39678
+  (0.2ms) SAVEPOINT active_record_1
39679
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39681
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39682
+  (0.1ms) SAVEPOINT active_record_1
39683
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39685
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39686
+  (0.2ms) SAVEPOINT active_record_1
39687
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39689
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
39690
+  (0.1ms) SAVEPOINT active_record_1
39691
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39693
+  (0.2ms) SAVEPOINT active_record_1
39694
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:44.984037"], ["updated_at", "2020-10-06 18:13:44.984037"], ["name", "Virginia Woolf"]]
39695
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39696
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
39697
+  (0.1ms) SAVEPOINT active_record_1
39698
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39700
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
39701
+  (0.2ms) SAVEPOINT active_record_1
39702
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39704
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
39705
+  (0.1ms) SAVEPOINT active_record_1
39706
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39708
+  (0.1ms) SAVEPOINT active_record_1
39709
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39711
+  (0.2ms) SAVEPOINT active_record_1
39712
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39714
+ Post Load (1.0ms) SELECT 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
39715
+  (0.4ms) SELECT MIN(posts.published_at) FROM "posts"
39716
+  (0.5ms) SELECT MAX(posts.published_at) FROM "posts"
39717
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
39718
+ Post Load (1.4ms) SELECT _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
39730
+ Post Load (2.4ms) SELECT 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
39731
+ Post Load (1.4ms) SELECT 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
39732
+  (1.0ms) SELECT MIN(posts.published_at) FROM "posts"
39733
+  (0.5ms) SELECT MAX(posts.published_at) FROM "posts"
39734
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
39735
+ Post Load (1.4ms) SELECT _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
39747
+  (0.7ms) SELECT MIN(posts.published_at) FROM "posts"
39748
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
39749
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
39750
+ Post Load (1.3ms) SELECT _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
39762
+  (0.3ms) ROLLBACK
39763
+  (0.2ms) BEGIN
39764
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39765
+  (0.2ms) SAVEPOINT active_record_1
39766
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.053509"], ["updated_at", "2020-10-06 18:13:45.053509"], ["name", "Alice"]]
39767
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39768
+  (0.2ms) SAVEPOINT active_record_1
39769
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39771
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39772
+  (0.2ms) SAVEPOINT active_record_1
39773
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39775
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39776
+  (0.1ms) SAVEPOINT active_record_1
39777
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.061391"], ["updated_at", "2020-10-06 18:13:45.061391"], ["name", "Bob"]]
39778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39779
+  (0.2ms) SAVEPOINT active_record_1
39780
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39782
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39783
+  (0.2ms) SAVEPOINT active_record_1
39784
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39786
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39787
+  (0.2ms) SAVEPOINT active_record_1
39788
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39790
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
39791
+  (0.2ms) SAVEPOINT active_record_1
39792
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.071650"], ["updated_at", "2020-10-06 18:13:45.071650"], ["name", "Chester"]]
39793
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39794
+  (0.2ms) SAVEPOINT active_record_1
39795
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39797
+ Post Load (0.8ms) SELECT 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
39798
+  (0.2ms) ROLLBACK
39799
+  (0.2ms) BEGIN
39800
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39801
+  (0.2ms) SAVEPOINT active_record_1
39802
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.081101"], ["updated_at", "2020-10-06 18:13:45.081101"], ["name", "Alice"]]
39803
+  (0.3ms) RELEASE SAVEPOINT active_record_1
39804
+  (0.2ms) SAVEPOINT active_record_1
39805
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39807
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39808
+  (0.3ms) SAVEPOINT active_record_1
39809
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39811
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39812
+  (0.1ms) SAVEPOINT active_record_1
39813
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.090227"], ["updated_at", "2020-10-06 18:13:45.090227"], ["name", "Bob"]]
39814
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39815
+  (0.2ms) SAVEPOINT active_record_1
39816
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39818
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39819
+  (0.2ms) SAVEPOINT active_record_1
39820
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39822
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39823
+  (0.2ms) SAVEPOINT active_record_1
39824
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39826
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
39827
+  (0.2ms) SAVEPOINT active_record_1
39828
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.101052"], ["updated_at", "2020-10-06 18:13:45.101052"], ["name", "Chester"]]
39829
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39830
+  (0.2ms) SAVEPOINT active_record_1
39831
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39833
+ Post Load (0.9ms) SELECT 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
39834
+  (0.3ms) ROLLBACK
39835
+  (0.1ms) BEGIN
39836
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39837
+  (0.1ms) SAVEPOINT active_record_1
39838
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.109955"], ["updated_at", "2020-10-06 18:13:45.109955"], ["name", "Alice"]]
39839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39840
+  (0.1ms) SAVEPOINT active_record_1
39841
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39843
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39844
+  (0.2ms) SAVEPOINT active_record_1
39845
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39847
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39848
+  (0.2ms) SAVEPOINT active_record_1
39849
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.117427"], ["updated_at", "2020-10-06 18:13:45.117427"], ["name", "Bob"]]
39850
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39851
+  (0.3ms) SAVEPOINT active_record_1
39852
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39854
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39855
+  (0.2ms) SAVEPOINT active_record_1
39856
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39858
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39859
+  (0.2ms) SAVEPOINT active_record_1
39860
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39862
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
39863
+  (0.1ms) SAVEPOINT active_record_1
39864
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.128821"], ["updated_at", "2020-10-06 18:13:45.128821"], ["name", "Chester"]]
39865
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39866
+  (0.2ms) SAVEPOINT active_record_1
39867
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39869
+ Post Load (0.7ms) SELECT 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
39870
+  (0.2ms) ROLLBACK
39871
+  (0.1ms) BEGIN
39872
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39873
+  (0.1ms) SAVEPOINT active_record_1
39874
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.138462"], ["updated_at", "2020-10-06 18:13:45.138462"], ["name", "Alice"]]
39875
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39876
+  (0.2ms) SAVEPOINT active_record_1
39877
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39879
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39880
+  (0.1ms) SAVEPOINT active_record_1
39881
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39883
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39884
+  (0.1ms) SAVEPOINT active_record_1
39885
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.146038"], ["updated_at", "2020-10-06 18:13:45.146038"], ["name", "Bob"]]
39886
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39887
+  (0.2ms) SAVEPOINT active_record_1
39888
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39890
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39891
+  (0.2ms) SAVEPOINT active_record_1
39892
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39894
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39895
+  (0.2ms) SAVEPOINT active_record_1
39896
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39898
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
39899
+  (0.2ms) SAVEPOINT active_record_1
39900
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.157395"], ["updated_at", "2020-10-06 18:13:45.157395"], ["name", "Chester"]]
39901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39902
+  (0.1ms) SAVEPOINT active_record_1
39903
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39905
+ Post Load (0.6ms) SELECT 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
39906
+  (0.3ms) ROLLBACK
39907
+  (0.1ms) BEGIN
39908
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39909
+  (0.2ms) SAVEPOINT active_record_1
39910
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.166060"], ["updated_at", "2020-10-06 18:13:45.166060"], ["name", "Alice"]]
39911
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39912
+  (0.2ms) SAVEPOINT active_record_1
39913
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39915
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39916
+  (0.1ms) SAVEPOINT active_record_1
39917
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39919
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39920
+  (0.2ms) SAVEPOINT active_record_1
39921
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.173821"], ["updated_at", "2020-10-06 18:13:45.173821"], ["name", "Bob"]]
39922
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39923
+  (0.2ms) SAVEPOINT active_record_1
39924
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39926
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39927
+  (0.1ms) SAVEPOINT active_record_1
39928
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39930
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39931
+  (0.2ms) SAVEPOINT active_record_1
39932
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39934
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
39935
+  (0.2ms) SAVEPOINT active_record_1
39936
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.183727"], ["updated_at", "2020-10-06 18:13:45.183727"], ["name", "Chester"]]
39937
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39938
+  (0.1ms) SAVEPOINT active_record_1
39939
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39941
+ Post Load (0.9ms) SELECT 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
39942
+  (0.2ms) ROLLBACK
39943
+  (0.1ms) BEGIN
39944
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39945
+  (0.2ms) SAVEPOINT active_record_1
39946
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.192422"], ["updated_at", "2020-10-06 18:13:45.192422"], ["name", "Alice"]]
39947
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39948
+  (0.1ms) SAVEPOINT active_record_1
39949
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39951
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
39952
+  (0.2ms) SAVEPOINT active_record_1
39953
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39955
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39956
+  (0.2ms) SAVEPOINT active_record_1
39957
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.199990"], ["updated_at", "2020-10-06 18:13:45.199990"], ["name", "Bob"]]
39958
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39959
+  (0.2ms) SAVEPOINT active_record_1
39960
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39962
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39963
+  (0.2ms) SAVEPOINT active_record_1
39964
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
39966
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
39967
+  (0.2ms) SAVEPOINT active_record_1
39968
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39970
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Chester"], ["LIMIT", 1]]
39971
+  (0.1ms) SAVEPOINT active_record_1
39972
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.209941"], ["updated_at", "2020-10-06 18:13:45.209941"], ["name", "Chester"]]
39973
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39974
+  (0.2ms) SAVEPOINT active_record_1
39975
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
39977
+ Post Load (0.7ms) SELECT 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
39978
+  (0.2ms) ROLLBACK
39979
+  (0.1ms) BEGIN
39980
+  (0.1ms) ROLLBACK
39981
+  (0.2ms) BEGIN
39982
+  (0.2ms) ROLLBACK
39983
+  (0.1ms) BEGIN
39984
+  (0.1ms) ROLLBACK
39985
+  (0.1ms) BEGIN
39986
+  (0.1ms) ROLLBACK
39987
+  (0.1ms) BEGIN
39988
+  (0.1ms) ROLLBACK
39989
+  (0.1ms) BEGIN
39990
+  (0.1ms) ROLLBACK
39991
+  (0.1ms) BEGIN
39992
+  (0.2ms) ROLLBACK
39993
+  (0.1ms) BEGIN
39994
+  (0.1ms) ROLLBACK
39995
+  (0.1ms) BEGIN
39996
+  (0.1ms) ROLLBACK
39997
+  (0.2ms) BEGIN
39998
+  (0.2ms) ROLLBACK
39999
+  (0.1ms) BEGIN
40000
+  (0.1ms) ROLLBACK
40001
+  (0.2ms) BEGIN
40002
+  (0.1ms) ROLLBACK
40003
+  (0.2ms) BEGIN
40004
+  (0.1ms) ROLLBACK
40005
+  (0.1ms) BEGIN
40006
+  (0.1ms) ROLLBACK
40007
+  (0.1ms) BEGIN
40008
+  (0.1ms) ROLLBACK
40009
+  (0.1ms) BEGIN
40010
+  (0.2ms) ROLLBACK
40011
+  (0.1ms) BEGIN
40012
+  (0.2ms) ROLLBACK
40013
+  (0.1ms) BEGIN
40014
+  (0.2ms) ROLLBACK
40015
+  (0.1ms) BEGIN
40016
+  (0.2ms) ROLLBACK
40017
+  (0.2ms) BEGIN
40018
+  (0.5ms) SELECT MIN(posts.likes) FROM "posts"
40019
+  (0.4ms) SELECT MAX(posts.likes) FROM "posts"
40020
+  (0.2ms) SAVEPOINT active_record_1
40021
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.248241"], ["updated_at", "2020-10-06 18:13:45.248241"], ["status", 2], ["likes", 3]]
40022
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40023
+  (0.2ms) SAVEPOINT active_record_1
40024
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.250312"], ["updated_at", "2020-10-06 18:13:45.250312"], ["status", 2], ["likes", 10]]
40025
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40026
+  (0.2ms) SAVEPOINT active_record_1
40027
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.252501"], ["updated_at", "2020-10-06 18:13:45.252501"], ["status", 2], ["likes", 1]]
40028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40029
+  (0.4ms) SELECT MIN(posts.likes) FROM "posts"
40030
+  (0.4ms) SELECT MAX(posts.likes) FROM "posts"
40031
+  (0.2ms) ROLLBACK
40032
+  (0.1ms) BEGIN
40033
+  (0.3ms) ROLLBACK
40034
+  (0.1ms) BEGIN
40035
+  (0.1ms) SAVEPOINT active_record_1
40036
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.273012"], ["updated_at", "2020-10-06 18:13:45.273012"], ["status", 2], ["likes", 2]]
40037
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40038
+  (0.3ms) SELECT MAX(posts.likes) FROM "posts"
40039
+ Post Exists? (0.2ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
40040
+  (0.1ms) ROLLBACK
40041
+  (0.1ms) BEGIN
40042
+  (0.2ms) ROLLBACK
40043
+  (0.1ms) BEGIN
40044
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
40045
+  (0.1ms) SAVEPOINT active_record_1
40046
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.279182"], ["updated_at", "2020-10-06 18:13:45.279182"], ["name", "Alice"]]
40047
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40048
+  (0.1ms) SAVEPOINT active_record_1
40049
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.280785"], ["updated_at", "2020-10-06 18:13:45.280785"], ["author_id", 918], ["status", 2]]
40050
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40051
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
40052
+  (0.1ms) SAVEPOINT active_record_1
40053
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.283407"], ["updated_at", "2020-10-06 18:13:45.283407"], ["name", "Bob"]]
40054
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40055
+  (0.1ms) SAVEPOINT active_record_1
40056
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.284938"], ["updated_at", "2020-10-06 18:13:45.284938"], ["author_id", 919], ["status", 2]]
40057
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40058
+  (0.1ms) SAVEPOINT active_record_1
40059
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.286568"], ["updated_at", "2020-10-06 18:13:45.286568"], ["status", 2]]
40060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40061
+ Post Load (0.5ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice'))
40062
+ Post Load (0.4ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IS NULL OR authors.name IN (NULL))
40063
+ Post Load (0.5ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IS NULL OR authors.name IN ('Alice'))
40064
+ Post Load (0.6ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice','Bob'))
40065
+ Post Load (0.4ms) SELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN (NULL))
40066
+  (0.1ms) ROLLBACK
40067
+  (0.1ms) BEGIN
40068
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
40069
+  (0.2ms) SAVEPOINT active_record_1
40070
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.295405"], ["updated_at", "2020-10-06 18:13:45.295405"], ["name", "Alice"]]
40071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40072
+  (0.1ms) SAVEPOINT active_record_1
40073
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.296958"], ["updated_at", "2020-10-06 18:13:45.296958"], ["author_id", 920], ["status", 2]]
40074
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40075
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Alice"], ["LIMIT", 1]]
40076
+  (0.2ms) SAVEPOINT active_record_1
40077
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.299514"], ["updated_at", "2020-10-06 18:13:45.299514"], ["author_id", 920], ["status", 2]]
40078
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40079
+  (0.2ms) SAVEPOINT active_record_1
40080
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.301659"], ["updated_at", "2020-10-06 18:13:45.301659"], ["status", 2]]
40081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40082
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
40083
+  (0.1ms) SAVEPOINT active_record_1
40084
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.304055"], ["updated_at", "2020-10-06 18:13:45.304055"], ["name", "Bob"]]
40085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40086
+  (0.2ms) SAVEPOINT active_record_1
40087
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.305423"], ["updated_at", "2020-10-06 18:13:45.305423"], ["author_id", 921], ["status", 2]]
40088
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40089
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
40090
+  (0.1ms) SAVEPOINT active_record_1
40091
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.307592"], ["updated_at", "2020-10-06 18:13:45.307592"], ["author_id", 921], ["status", 2]]
40092
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40093
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Bob"], ["LIMIT", 1]]
40094
+  (0.1ms) SAVEPOINT active_record_1
40095
+ Post Create (0.2ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2020-10-06 18:13:45.309652"], ["updated_at", "2020-10-06 18:13:45.309652"], ["author_id", 921], ["status", 2]]
40096
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40097
+ Post Load (0.6ms) SELECT 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
40098
+  (0.2ms) ROLLBACK
40099
+  (0.1ms) BEGIN
40100
+  (0.1ms) ROLLBACK
40101
+  (0.2ms) BEGIN
40102
+  (0.3ms) ROLLBACK
40103
+  (0.2ms) BEGIN
40104
+  (0.2ms) ROLLBACK
40105
+  (0.2ms) BEGIN
40106
+  (0.1ms) ROLLBACK
40107
+  (0.2ms) BEGIN
40108
+  (0.2ms) ROLLBACK
40109
+  (0.2ms) BEGIN
40110
+  (0.2ms) ROLLBACK
40111
+  (0.1ms) BEGIN
40112
+  (0.1ms) ROLLBACK
40113
+  (0.1ms) BEGIN
40114
+  (0.2ms) ROLLBACK
40115
+  (0.1ms) BEGIN
40116
+  (0.2ms) ROLLBACK
40117
+  (0.2ms) BEGIN
40118
+  (0.1ms) ROLLBACK
40119
+  (0.1ms) BEGIN
40120
+  (0.1ms) ROLLBACK
40121
+  (0.1ms) BEGIN
40122
+  (0.2ms) ROLLBACK
40123
+  (0.1ms) BEGIN
40124
+  (0.2ms) ROLLBACK
40125
+  (0.1ms) BEGIN
40126
+  (0.1ms) ROLLBACK
40127
+  (0.1ms) BEGIN
40128
+  (0.1ms) ROLLBACK
40129
+  (0.1ms) BEGIN
40130
+  (0.1ms) ROLLBACK
40131
+  (0.1ms) BEGIN
40132
+  (0.1ms) ROLLBACK
40133
+  (0.1ms) BEGIN
40134
+  (0.2ms) ROLLBACK
40135
+  (0.1ms) BEGIN
40136
+  (0.2ms) ROLLBACK
40137
+  (0.1ms) BEGIN
40138
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40139
+  (0.2ms) SAVEPOINT active_record_1
40140
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.351757"], ["updated_at", "2020-10-06 18:13:45.351757"], ["name", "Tammy"]]
40141
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40142
+  (0.2ms) SAVEPOINT active_record_1
40143
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40145
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40146
+  (0.2ms) SAVEPOINT active_record_1
40147
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40149
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40150
+  (0.2ms) SAVEPOINT active_record_1
40151
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40153
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40154
+  (0.2ms) SAVEPOINT active_record_1
40155
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40157
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40158
+  (0.2ms) SAVEPOINT active_record_1
40159
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.366303"], ["updated_at", "2020-10-06 18:13:45.366303"], ["name", "Timmy"]]
40160
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40161
+  (0.2ms) SAVEPOINT active_record_1
40162
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40164
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40165
+  (0.2ms) SAVEPOINT active_record_1
40166
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40168
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40169
+  (0.2ms) SAVEPOINT active_record_1
40170
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 18:13:45.374595"], ["author_id", 923], ["status", 2]]
40171
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40172
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40173
+  (0.2ms) SAVEPOINT active_record_1
40174
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40176
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40177
+  (0.2ms) SAVEPOINT active_record_1
40178
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
40180
+  (6.0ms) SELECT 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')
40181
+ Post Exists? (0.6ms) SELECT 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 [["LIMIT", 1]]
40182
+ Post Load (1.4ms) SELECT 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
40195
+  (0.3ms) ROLLBACK
40196
+  (0.2ms) BEGIN
40197
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40198
+  (0.3ms) SAVEPOINT active_record_1
40199
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.409714"], ["updated_at", "2020-10-06 18:13:45.409714"], ["name", "Tammy"]]
40200
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40201
+  (0.2ms) SAVEPOINT active_record_1
40202
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40204
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40205
+  (0.2ms) SAVEPOINT active_record_1
40206
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40208
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40209
+  (0.2ms) SAVEPOINT active_record_1
40210
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40212
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40213
+  (0.2ms) SAVEPOINT active_record_1
40214
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40216
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40217
+  (0.2ms) SAVEPOINT active_record_1
40218
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.424894"], ["updated_at", "2020-10-06 18:13:45.424894"], ["name", "Timmy"]]
40219
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40220
+  (0.1ms) SAVEPOINT active_record_1
40221
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40223
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40224
+  (0.3ms) SAVEPOINT active_record_1
40225
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40227
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40228
+  (0.2ms) SAVEPOINT active_record_1
40229
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 18:13:45.432639"], ["author_id", 925], ["status", 2]]
40230
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40231
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40232
+  (0.2ms) SAVEPOINT active_record_1
40233
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40235
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40236
+  (0.2ms) SAVEPOINT active_record_1
40237
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40239
+  (0.6ms) SELECT 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')
40240
+ Post Exists? (0.6ms) SELECT 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 [["LIMIT", 1]]
40241
+ Post Load (1.6ms) SELECT 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
40254
+  (0.3ms) ROLLBACK
40255
+  (0.2ms) BEGIN
40256
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40257
+  (0.2ms) SAVEPOINT active_record_1
40258
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.460344"], ["updated_at", "2020-10-06 18:13:45.460344"], ["name", "Tammy"]]
40259
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40260
+  (0.1ms) SAVEPOINT active_record_1
40261
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40263
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40264
+  (0.2ms) SAVEPOINT active_record_1
40265
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40267
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40268
+  (0.2ms) SAVEPOINT active_record_1
40269
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40271
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40272
+  (0.2ms) SAVEPOINT active_record_1
40273
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40275
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40276
+  (0.1ms) SAVEPOINT active_record_1
40277
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.474820"], ["updated_at", "2020-10-06 18:13:45.474820"], ["name", "Timmy"]]
40278
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40279
+  (0.2ms) SAVEPOINT active_record_1
40280
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40282
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40283
+  (0.2ms) SAVEPOINT active_record_1
40284
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
40286
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40287
+  (0.2ms) SAVEPOINT active_record_1
40288
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 18:13:45.482590"], ["author_id", 927], ["status", 2]]
40289
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40290
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40291
+  (0.2ms) SAVEPOINT active_record_1
40292
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40294
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40295
+  (0.2ms) SAVEPOINT active_record_1
40296
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40298
+  (0.7ms) SELECT 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')
40299
+ Post Exists? (0.5ms) SELECT 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 [["LIMIT", 1]]
40300
+ Post Load (1.5ms) SELECT 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
40313
+  (0.4ms) ROLLBACK
40314
+  (0.1ms) BEGIN
40315
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40316
+  (0.2ms) SAVEPOINT active_record_1
40317
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.509414"], ["updated_at", "2020-10-06 18:13:45.509414"], ["name", "Tammy"]]
40318
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40319
+  (0.2ms) SAVEPOINT active_record_1
40320
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40322
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40323
+  (0.1ms) SAVEPOINT active_record_1
40324
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40326
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40327
+  (0.2ms) SAVEPOINT active_record_1
40328
+ Post Create (0.6ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.7ms) RELEASE SAVEPOINT active_record_1
40330
+ Author Load (0.5ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40331
+  (0.2ms) SAVEPOINT active_record_1
40332
+ Post Create (1.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40334
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40335
+  (0.3ms) SAVEPOINT active_record_1
40336
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.527669"], ["updated_at", "2020-10-06 18:13:45.527669"], ["name", "Timmy"]]
40337
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40338
+  (0.2ms) SAVEPOINT active_record_1
40339
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40341
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40342
+  (0.2ms) SAVEPOINT active_record_1
40343
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40345
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40346
+  (0.2ms) SAVEPOINT active_record_1
40347
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 18:13:45.536287"], ["author_id", 929], ["status", 2]]
40348
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40349
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40350
+  (0.2ms) SAVEPOINT active_record_1
40351
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40353
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40354
+  (0.2ms) SAVEPOINT active_record_1
40355
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40357
+  (0.7ms) SELECT 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')
40358
+ Post Exists? (0.6ms) SELECT 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 [["LIMIT", 1]]
40359
+ Post Load (1.5ms) SELECT 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
40372
+ Post Load (0.8ms) SELECT 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
40373
+ Post Load (0.7ms) SELECT 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
40374
+  (0.4ms) ROLLBACK
40375
+  (0.2ms) BEGIN
40376
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40377
+  (0.1ms) SAVEPOINT active_record_1
40378
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.570231"], ["updated_at", "2020-10-06 18:13:45.570231"], ["name", "Tammy"]]
40379
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40380
+  (0.2ms) SAVEPOINT active_record_1
40381
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40383
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40384
+  (0.2ms) SAVEPOINT active_record_1
40385
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40387
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40388
+  (0.1ms) SAVEPOINT active_record_1
40389
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40391
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40392
+  (0.2ms) SAVEPOINT active_record_1
40393
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40395
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40396
+  (0.2ms) SAVEPOINT active_record_1
40397
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.584283"], ["updated_at", "2020-10-06 18:13:45.584283"], ["name", "Timmy"]]
40398
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40399
+  (0.1ms) SAVEPOINT active_record_1
40400
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40402
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40403
+  (0.2ms) SAVEPOINT active_record_1
40404
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40406
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40407
+  (0.2ms) SAVEPOINT active_record_1
40408
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-02-28 00:00:00"], ["updated_at", "2020-10-06 18:13:45.591973"], ["author_id", 931], ["status", 2]]
40409
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40410
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40411
+  (0.2ms) SAVEPOINT active_record_1
40412
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40414
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40415
+  (0.1ms) SAVEPOINT active_record_1
40416
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40418
+  (0.6ms) SELECT 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')
40419
+ Post Exists? (0.8ms) SELECT 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 [["LIMIT", 1]]
40420
+ Post Exists? (0.7ms) SELECT 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 [["LIMIT", 1]]
40421
+ Post Load (0.9ms) SELECT 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 [["LIMIT", 1]]
40431
+ Post Load (0.9ms) SELECT 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
40441
+ Post Load (1.5ms) SELECT 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
40454
+  (0.4ms) ROLLBACK
40455
+  (0.2ms) BEGIN
40456
+  (0.2ms) ROLLBACK
40457
+  (0.1ms) BEGIN
40458
+  (0.2ms) ROLLBACK
40459
+  (0.1ms) BEGIN
40460
+  (0.2ms) ROLLBACK
40461
+  (0.2ms) BEGIN
40462
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
40463
+  (0.2ms) SAVEPOINT active_record_1
40464
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.632931"], ["updated_at", "2020-10-06 18:13:45.632931"], ["name", "Phil"]]
40465
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40466
+  (0.2ms) SAVEPOINT active_record_1
40467
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.634973"], ["author_id", 932], ["status", 2]]
40468
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40469
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
40470
+  (0.2ms) SAVEPOINT active_record_1
40471
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.638012"], ["author_id", 932], ["status", 2]]
40472
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40473
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
40474
+  (0.1ms) SAVEPOINT active_record_1
40475
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.640649"], ["updated_at", "2020-10-06 18:13:45.640649"], ["name", "Phyllis"]]
40476
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40477
+  (0.2ms) SAVEPOINT active_record_1
40478
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.642297"], ["author_id", 933], ["status", 2]]
40479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40480
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
40481
+  (0.2ms) SAVEPOINT active_record_1
40482
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.644876"], ["author_id", 933], ["status", 2]]
40483
+  (0.3ms) RELEASE SAVEPOINT active_record_1
40484
+ Post Load (0.4ms) SELECT "posts".* FROM "posts"
40485
+  (0.2ms) ROLLBACK
40486
+  (0.1ms) BEGIN
40487
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
40488
+  (0.3ms) SAVEPOINT active_record_1
40489
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.651230"], ["updated_at", "2020-10-06 18:13:45.651230"], ["name", "Phil"]]
40490
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40491
+  (0.2ms) SAVEPOINT active_record_1
40492
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.653195"], ["author_id", 934], ["status", 2]]
40493
+  (0.3ms) RELEASE SAVEPOINT active_record_1
40494
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
40495
+  (0.2ms) SAVEPOINT active_record_1
40496
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.656347"], ["author_id", 934], ["status", 2]]
40497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40498
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
40499
+  (0.2ms) SAVEPOINT active_record_1
40500
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.659137"], ["updated_at", "2020-10-06 18:13:45.659137"], ["name", "Phyllis"]]
40501
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40502
+  (0.1ms) SAVEPOINT active_record_1
40503
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.660984"], ["author_id", 935], ["status", 2]]
40504
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40505
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phyllis"], ["LIMIT", 1]]
40506
+  (0.2ms) SAVEPOINT active_record_1
40507
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.663739"], ["author_id", 935], ["status", 2]]
40508
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40509
+ Post Load (0.3ms) SELECT "posts".* FROM "posts"
40510
+  (0.2ms) ROLLBACK
40511
+  (0.2ms) BEGIN
40512
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
40513
+  (0.2ms) SAVEPOINT active_record_1
40514
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.670222"], ["updated_at", "2020-10-06 18:13:45.670222"], ["name", "Phil"]]
40515
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40516
+  (0.1ms) SAVEPOINT active_record_1
40517
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.671993"], ["author_id", 936], ["status", 2]]
40518
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40519
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Phil"], ["LIMIT", 1]]
40520
+  (0.2ms) SAVEPOINT active_record_1
40521
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2019-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.674641"], ["author_id", 936], ["status", 2]]
40522
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40523
+ Post Load (0.6ms) SELECT "posts".* FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('Phil'))
40524
+  (0.3ms) ROLLBACK
40525
+  (0.1ms) BEGIN
40526
+ Post Exists? (0.5ms) SELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('')) LIMIT $1 [["LIMIT", 1]]
40527
+  (0.2ms) ROLLBACK
40528
+  (0.1ms) BEGIN
40529
+ Post Exists? (0.6ms) SELECT 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 [["LIMIT", 1]]
40530
+  (0.3ms) ROLLBACK
40531
+  (0.2ms) BEGIN
40532
+  (0.2ms) ROLLBACK
40533
+  (0.1ms) BEGIN
40534
+  (0.1ms) ROLLBACK
40535
+  (0.2ms) BEGIN
40536
+  (0.1ms) ROLLBACK
40537
+  (0.1ms) BEGIN
40538
+  (0.2ms) ROLLBACK
40539
+  (0.2ms) BEGIN
40540
+  (0.2ms) ROLLBACK
40541
+  (0.2ms) BEGIN
40542
+  (0.3ms) ROLLBACK
40543
+  (0.2ms) BEGIN
40544
+  (0.2ms) ROLLBACK
40545
+  (0.1ms) BEGIN
40546
+  (0.2ms) ROLLBACK
40547
+  (0.2ms) BEGIN
40548
+  (0.1ms) ROLLBACK
40549
+  (0.2ms) BEGIN
40550
+  (0.2ms) ROLLBACK
40551
+  (0.1ms) BEGIN
40552
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40553
+  (0.2ms) SAVEPOINT active_record_1
40554
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.709127"], ["updated_at", "2020-10-06 18:13:45.709127"], ["name", "Timmy"]]
40555
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40556
+  (0.1ms) SAVEPOINT active_record_1
40557
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40559
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40560
+  (0.2ms) SAVEPOINT active_record_1
40561
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40563
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40564
+  (0.2ms) SAVEPOINT active_record_1
40565
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.717004"], ["updated_at", "2020-10-06 18:13:45.717004"], ["name", "Tammy"]]
40566
+  (0.3ms) RELEASE SAVEPOINT active_record_1
40567
+  (0.2ms) SAVEPOINT active_record_1
40568
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40570
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40571
+  (0.1ms) SAVEPOINT active_record_1
40572
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40574
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40575
+  (0.1ms) SAVEPOINT active_record_1
40576
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40578
+ Post Load (0.5ms) SELECT '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
40579
+  (0.3ms) ROLLBACK
40580
+  (0.2ms) BEGIN
40581
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40582
+  (0.2ms) SAVEPOINT active_record_1
40583
+ Author Create (0.5ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.730977"], ["updated_at", "2020-10-06 18:13:45.730977"], ["name", "Timmy"]]
40584
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40585
+  (0.1ms) SAVEPOINT active_record_1
40586
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40588
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Timmy"], ["LIMIT", 1]]
40589
+  (0.2ms) SAVEPOINT active_record_1
40590
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40592
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40593
+  (0.2ms) SAVEPOINT active_record_1
40594
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:13:45.739433"], ["updated_at", "2020-10-06 18:13:45.739433"], ["name", "Tammy"]]
40595
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40596
+  (0.2ms) SAVEPOINT active_record_1
40597
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40599
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40600
+  (0.2ms) SAVEPOINT active_record_1
40601
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40603
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Tammy"], ["LIMIT", 1]]
40604
+  (0.1ms) SAVEPOINT active_record_1
40605
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40607
+ Post Load (0.7ms) SELECT '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
40608
+ Post Load (0.5ms) SELECT '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
40609
+  (0.2ms) ROLLBACK
40610
+  (0.2ms) BEGIN
40611
+  (0.2ms) SAVEPOINT active_record_1
40612
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.755150"], ["title", "A"], ["status", 2], ["likes", 2]]
40613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40614
+  (0.2ms) SAVEPOINT active_record_1
40615
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.757452"], ["title", "A"], ["status", 2], ["likes", 2]]
40616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40617
+  (0.1ms) SAVEPOINT active_record_1
40618
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.759531"], ["title", "B"], ["status", 2], ["likes", 1]]
40619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40620
+  (0.1ms) SAVEPOINT active_record_1
40621
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 18:13:45.761322"], ["title", "A"], ["status", 2], ["likes", 1]]
40622
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40623
+  (0.2ms) ROLLBACK
40624
+  (0.3ms) BEGIN
40625
+  (0.2ms) SAVEPOINT active_record_1
40626
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.765556"], ["title", "A"], ["status", 2], ["likes", 2]]
40627
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40628
+  (0.2ms) SAVEPOINT active_record_1
40629
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.767895"], ["title", "A"], ["status", 2], ["likes", 2]]
40630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40631
+  (0.1ms) SAVEPOINT active_record_1
40632
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.770126"], ["title", "B"], ["status", 2], ["likes", 1]]
40633
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40634
+  (0.1ms) SAVEPOINT active_record_1
40635
+ Post Create (0.9ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 18:13:45.772039"], ["title", "A"], ["status", 2], ["likes", 1]]
40636
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40637
+  (0.2ms) ROLLBACK
40638
+  (0.3ms) BEGIN
40639
+  (0.2ms) SAVEPOINT active_record_1
40640
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.777454"], ["title", "A"], ["status", 2], ["likes", 2]]
40641
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40642
+  (0.1ms) SAVEPOINT active_record_1
40643
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.779916"], ["title", "A"], ["status", 2], ["likes", 2]]
40644
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40645
+  (0.2ms) SAVEPOINT active_record_1
40646
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.782081"], ["title", "B"], ["status", 2], ["likes", 1]]
40647
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40648
+  (0.2ms) SAVEPOINT active_record_1
40649
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 18:13:45.784368"], ["title", "A"], ["status", 2], ["likes", 1]]
40650
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40651
+  (0.4ms) SELECT MIN(posts.likes) FROM "posts"
40652
+  (0.3ms) SELECT MAX(posts.likes) FROM "posts"
40653
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
40654
+ Post Load (1.1ms) SELECT 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
40665
+  (0.2ms) ROLLBACK
40666
+  (0.2ms) BEGIN
40667
+  (0.1ms) SAVEPOINT active_record_1
40668
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.793175"], ["title", "A"], ["status", 2], ["likes", 2]]
40669
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40670
+  (0.2ms) SAVEPOINT active_record_1
40671
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.795371"], ["title", "A"], ["status", 2], ["likes", 2]]
40672
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40673
+  (0.2ms) SAVEPOINT active_record_1
40674
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.797550"], ["title", "B"], ["status", 2], ["likes", 1]]
40675
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40676
+  (0.3ms) SAVEPOINT active_record_1
40677
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 18:13:45.799952"], ["title", "A"], ["status", 2], ["likes", 1]]
40678
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40679
+  (0.5ms) SELECT MIN(posts.created_at) FROM "posts"
40680
+  (0.3ms) SELECT MAX(posts.created_at) FROM "posts"
40681
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
40682
+  (0.4ms) SELECT MIN(posts.likes) FROM "posts"
40683
+  (0.4ms) SELECT MAX(posts.likes) FROM "posts"
40684
+ Post Exists? (0.4ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
40685
+ Post Load (1.2ms) SELECT 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
40706
+  (0.3ms) ROLLBACK
40707
+  (0.2ms) BEGIN
40708
+  (0.2ms) SAVEPOINT active_record_1
40709
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.815803"], ["title", "A"], ["status", 2], ["likes", 2]]
40710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40711
+  (0.2ms) SAVEPOINT active_record_1
40712
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.818086"], ["title", "A"], ["status", 2], ["likes", 2]]
40713
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40714
+  (0.1ms) SAVEPOINT active_record_1
40715
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.820243"], ["title", "B"], ["status", 2], ["likes", 1]]
40716
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40717
+  (0.2ms) SAVEPOINT active_record_1
40718
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 18:13:45.822250"], ["title", "A"], ["status", 2], ["likes", 1]]
40719
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40720
+  (0.2ms) ROLLBACK
40721
+  (0.1ms) BEGIN
40722
+  (0.2ms) SAVEPOINT active_record_1
40723
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.826401"], ["title", "A"], ["status", 2], ["likes", 2]]
40724
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40725
+  (0.2ms) SAVEPOINT active_record_1
40726
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.828722"], ["title", "A"], ["status", 2], ["likes", 2]]
40727
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40728
+  (0.2ms) SAVEPOINT active_record_1
40729
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.830895"], ["title", "B"], ["status", 2], ["likes", 1]]
40730
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40731
+  (0.2ms) SAVEPOINT active_record_1
40732
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 18:13:45.833132"], ["title", "A"], ["status", 2], ["likes", 1]]
40733
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40734
+  (0.3ms) ROLLBACK
40735
+  (0.1ms) BEGIN
40736
+  (0.3ms) SAVEPOINT active_record_1
40737
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.840798"], ["title", "A"], ["status", 2], ["likes", 2]]
40738
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40739
+  (0.1ms) SAVEPOINT active_record_1
40740
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.843381"], ["title", "A"], ["status", 2], ["likes", 2]]
40741
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40742
+  (0.1ms) SAVEPOINT active_record_1
40743
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2020-10-06 18:13:45.845369"], ["title", "B"], ["status", 2], ["likes", 1]]
40744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40745
+  (0.2ms) SAVEPOINT active_record_1
40746
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2020-10-06 18:13:45.847273"], ["title", "A"], ["status", 2], ["likes", 1]]
40747
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40748
+  (0.4ms) SELECT MIN(posts.created_at) FROM "posts"
40749
+  (0.4ms) SELECT MAX(posts.created_at) FROM "posts"
40750
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1 [["LIMIT", 1]]
40751
+  (0.4ms) SELECT MIN(posts.likes) FROM "posts"
40752
+  (0.3ms) SELECT MAX(posts.likes) FROM "posts"
40753
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
40754
+ Post Load (1.6ms) SELECT _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
40775
+  (0.2ms) ROLLBACK
40776
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40777
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40778
+ Post Load (0.9ms) SELECT 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 [["LIMIT", 11]]
40789
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40790
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40791
+ Post Load (0.7ms) SELECT 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 [["LIMIT", 11]]
40802
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40803
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40804
+ Post Load (0.7ms) SELECT 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 [["LIMIT", 11]]
40815
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40816
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40817
+ Post Load (1.3ms) SELECT 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 [["LIMIT", 11]]
40838
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40839
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40840
+ Post Load (0.9ms) SELECT 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 [["LIMIT", 11]]
40861
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40862
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40863
+ Post Load (0.9ms) SELECT 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 [["LIMIT", 11]]
40884
+ Post Load (0.4ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40885
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40886
+ Post Load (0.9ms) SELECT _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 [["LIMIT", 11]]
40907
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40908
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40909
+ Post Load (1.4ms) SELECT _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 [["LIMIT", 11]]
40930
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40931
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" LIMIT $1 [["LIMIT", 11]]
40932
+ Post Load (1.4ms) SELECT _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 [["LIMIT", 11]]
40953
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
40954
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
40955
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
40956
+  (0.4ms) BEGIN
40957
+  (0.3ms) SAVEPOINT active_record_1
40958
+ Author Create (0.8ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:17:31.496255"], ["updated_at", "2020-10-06 18:17:31.496255"], ["name", "James Joyce"]]
40959
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40960
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
40961
+  (0.2ms) SAVEPOINT active_record_1
40962
+ Post Create (0.6ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40964
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
40965
+  (0.2ms) SAVEPOINT active_record_1
40966
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40968
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
40969
+  (0.2ms) SAVEPOINT active_record_1
40970
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40972
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
40973
+  (0.2ms) SAVEPOINT active_record_1
40974
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40976
+  (0.2ms) SAVEPOINT active_record_1
40977
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:17:31.552188"], ["updated_at", "2020-10-06 18:17:31.552188"], ["name", "Virginia Woolf"]]
40978
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40979
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
40980
+  (0.1ms) SAVEPOINT active_record_1
40981
+ Post Create (6.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
40983
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
40984
+  (0.2ms) SAVEPOINT active_record_1
40985
+ Post Create (1.1ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40987
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
40988
+  (0.2ms) SAVEPOINT active_record_1
40989
+ Post Create (1.1ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40991
+  (0.2ms) SAVEPOINT active_record_1
40992
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
40994
+  (0.2ms) SAVEPOINT active_record_1
40995
+ Post Create (0.3ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40997
+ Post Load (2.5ms) SELECT 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
40998
+  (0.9ms) SELECT MIN(posts.published_at) FROM "posts"
40999
+  (0.4ms) SELECT MAX(posts.published_at) FROM "posts"
41000
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1 [["LIMIT", 1]]
41001
+ Post Load (1.8ms) SELECT _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
41013
+  (0.5ms) SELECT MIN(posts.likes) FROM "posts"
41014
+  (0.5ms) SELECT MAX(posts.likes) FROM "posts"
41015
+ Post Exists? (0.3ms) SELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1 [["LIMIT", 1]]
41016
+ Post Load (1.9ms) SELECT _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
41028
+  (0.5ms) ROLLBACK
41029
+  (0.1ms) BEGIN
41030
+  (0.2ms) SAVEPOINT active_record_1
41031
+ Author Create (0.4ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:17:31.636456"], ["updated_at", "2020-10-06 18:17:31.636456"], ["name", "James Joyce"]]
41032
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41033
+ Author Load (0.4ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
41034
+  (0.2ms) SAVEPOINT active_record_1
41035
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
41037
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
41038
+  (0.2ms) SAVEPOINT active_record_1
41039
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
41041
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
41042
+  (0.2ms) SAVEPOINT active_record_1
41043
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
41045
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "James Joyce"], ["LIMIT", 1]]
41046
+  (0.1ms) SAVEPOINT active_record_1
41047
+ Post Create (1.1ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (4.3ms) RELEASE SAVEPOINT active_record_1
41049
+  (0.2ms) SAVEPOINT active_record_1
41050
+ Author Create (0.3ms) INSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2020-10-06 18:17:31.657145"], ["updated_at", "2020-10-06 18:17:31.657145"], ["name", "Virginia Woolf"]]
41051
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41052
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
41053
+  (0.1ms) SAVEPOINT active_record_1
41054
+ Post Create (0.5ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.3ms) RELEASE SAVEPOINT active_record_1
41056
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
41057
+  (0.2ms) SAVEPOINT active_record_1
41058
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41060
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2 [["name", "Virginia Woolf"], ["LIMIT", 1]]
41061
+  (0.2ms) SAVEPOINT active_record_1
41062
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
41064
+  (0.2ms) SAVEPOINT active_record_1
41065
+ Post Create (0.4ms) INSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
41067
+  (0.1ms) SAVEPOINT active_record_1
41068
+ Post Create (0.6ms) INSERT IN