active_reporter 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/active_reporter/report/validation.rb +17 -6
- data/lib/active_reporter/version.rb +1 -1
- data/spec/dummy/log/test.log +1301 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6789dcbec262ccf45587ae0754e063a10c0124c2a7987da26e683e04db80161d
|
4
|
+
data.tar.gz: 189ec9b0ffdf3ed8347b86cb111a549edde6c6a9adad59ebfc8085446d62e675
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e282086025d1d59671af5d72736e3e2bc9faa03a5b278bf6ae58e100e791892c6481a8c787902115e3d704a51950c17b196a7f0f3db5f1f121f4473d9bee7ae5
|
7
|
+
data.tar.gz: ba05093e785459874bdbf78c5e325ada6b027f6e2b5d96caff6b8d6f99d42730ea17a472511693718b62aa907ad7077fa1bfc1ca8648656b17a84ab98528ad44
|
@@ -38,10 +38,13 @@ module ActiveReporter
|
|
38
38
|
end
|
39
39
|
|
40
40
|
calculators.values.each do |calculator|
|
41
|
-
|
41
|
+
case
|
42
|
+
when calculator.aggregator.nil?
|
42
43
|
add_invalid_param_error(:calculator, ":#{calculator.name} must define an aggregator (should be in #{self.class.aggregator.keys})")
|
43
|
-
|
44
|
+
when self.class.aggregators.exclude?(calculator.aggregator)
|
44
45
|
add_invalid_param_error(:calculator, ":#{calculator.name} defines an invalid aggregator :#{calculator.aggregator} (should be in #{self.class.aggregators.keys})")
|
46
|
+
when params.include?(:aggregators) && aggregators.exclude?(calculator.aggregator)
|
47
|
+
params[:aggregators].push(calculator.aggregator)
|
45
48
|
end
|
46
49
|
end
|
47
50
|
end
|
@@ -52,14 +55,22 @@ module ActiveReporter
|
|
52
55
|
end
|
53
56
|
|
54
57
|
trackers.values.each do |tracker|
|
55
|
-
|
58
|
+
case
|
59
|
+
when tracker.aggregator.nil?
|
56
60
|
add_invalid_param_error(:tracker, ":#{tracker.name} must define an aggregator (should be in #{self.class.aggregator.keys})")
|
57
|
-
|
61
|
+
when self.class.aggregators.exclude?(tracker.aggregator)
|
58
62
|
add_invalid_param_error(:tracker, ":#{tracker.name} defines an invalid aggregator :#{tracker.aggregator} (should be in #{self.class.aggregators.keys})")
|
63
|
+
when params.include?(:aggregators) && aggregators.exclude?(tracker.aggregator)
|
64
|
+
params[:aggregators].push(tracker.aggregator)
|
59
65
|
end
|
60
66
|
|
61
|
-
if tracker.
|
62
|
-
|
67
|
+
if tracker.opts.include?(:prior_aggregator)
|
68
|
+
case
|
69
|
+
when self.class.aggregators.exclude?(tracker.prior_aggregator)
|
70
|
+
add_invalid_param_error(:tracker, ":#{tracker.name} defines an invalid prior aggregator :#{tracker.prior_aggregator} (should be in #{self.class.aggregators.keys})")
|
71
|
+
when params.include?(:aggregators) && aggregators.exclude?(tracker.prior_aggregator)
|
72
|
+
params[:aggregators].push(tracker.prior_aggregator)
|
73
|
+
end
|
63
74
|
end
|
64
75
|
end
|
65
76
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -98352,5 +98352,1306 @@
|
|
98352
98352
|
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
98353
98353
|
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
98354
98354
|
END
|
98355
|
+
) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
98356
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98357
|
+
[1m[35m (17.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
98358
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
98359
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
98360
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98361
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98362
|
+
[1m[36mAuthor Create (5.2ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.434715"], ["updated_at", "2021-04-08 01:13:03.434715"], ["name", "James Joyce"]]
|
98363
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98364
|
+
[1m[36mAuthor Load (0.8ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98365
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98366
|
+
[1m[36mPost Create (4.9ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.478850"], ["updated_at", "2021-04-08 01:13:03.478850"], ["author_id", 3103], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
98367
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98368
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98369
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98370
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.488213"], ["updated_at", "2021-04-08 01:13:03.488213"], ["author_id", 3103], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98371
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98372
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98373
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98374
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.492392"], ["updated_at", "2021-04-08 01:13:03.492392"], ["author_id", 3103], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
98375
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98376
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98377
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98378
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.496701"], ["updated_at", "2021-04-08 01:13:03.496701"], ["author_id", 3103], ["status", 2], ["likes", 3]]
|
98379
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98380
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98381
|
+
[1m[36mAuthor Create (0.6ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.500200"], ["updated_at", "2021-04-08 01:13:03.500200"], ["name", "Virginia Woolf"]]
|
98382
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98383
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98384
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98385
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.504051"], ["updated_at", "2021-04-08 01:13:03.504051"], ["author_id", 3104], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98386
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98387
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98388
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98389
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.508081"], ["updated_at", "2021-04-08 01:13:03.508081"], ["author_id", 3104], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
98390
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98391
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98392
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98393
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.510871"], ["updated_at", "2021-04-08 01:13:03.510871"], ["author_id", 3104], ["status", 2], ["likes", 3]]
|
98394
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98395
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98396
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.514276"], ["updated_at", "2021-04-08 01:13:03.514276"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98397
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98398
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98399
|
+
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:13:03.516587"], ["updated_at", "2021-04-08 01:13:03.516587"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
98400
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98401
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
98402
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
98403
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
98404
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98405
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98406
|
+
[1m[36mAuthor Create (0.6ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.056956"], ["updated_at", "2021-04-08 01:40:47.056956"], ["name", "James Joyce"]]
|
98407
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98408
|
+
[1m[36mAuthor Load (0.4ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98409
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98410
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.078725"], ["updated_at", "2021-04-08 01:40:47.078725"], ["author_id", 3105], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
98411
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98412
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98413
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98414
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.081674"], ["updated_at", "2021-04-08 01:40:47.081674"], ["author_id", 3105], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98415
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98416
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98417
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98418
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.084001"], ["updated_at", "2021-04-08 01:40:47.084001"], ["author_id", 3105], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
98419
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98420
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98421
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98422
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.086140"], ["updated_at", "2021-04-08 01:40:47.086140"], ["author_id", 3105], ["status", 2], ["likes", 3]]
|
98423
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98424
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98425
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.088151"], ["updated_at", "2021-04-08 01:40:47.088151"], ["name", "Virginia Woolf"]]
|
98426
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98427
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98428
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98429
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.092034"], ["updated_at", "2021-04-08 01:40:47.092034"], ["author_id", 3106], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98430
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98431
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98432
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98433
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.095039"], ["updated_at", "2021-04-08 01:40:47.095039"], ["author_id", 3106], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
98434
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98435
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98436
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98437
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.097520"], ["updated_at", "2021-04-08 01:40:47.097520"], ["author_id", 3106], ["status", 2], ["likes", 3]]
|
98438
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98439
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98440
|
+
[1m[36mPost Create (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.100776"], ["updated_at", "2021-04-08 01:40:47.100776"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98441
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98442
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98443
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.104655"], ["updated_at", "2021-04-08 01:40:47.104655"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
98444
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98445
|
+
[1m[36mPost Load (31.5ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
98446
|
+
[1m[35m (12.0ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
98447
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
98448
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98449
|
+
[1m[36mPost Load (7.7ms)[0m [1m[34mSELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
|
98450
|
+
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
|
98451
|
+
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
|
98452
|
+
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
|
98453
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
98454
|
+
CASE
|
98455
|
+
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)
|
98456
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
98457
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
98458
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
98459
|
+
END
|
98460
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
98461
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
98462
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
98463
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98464
|
+
[1m[36mPost Load (3.4ms)[0m [1m[34mSELECT _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
|
98465
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
98466
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text UNION
|
98467
|
+
SELECT 3.0 AS min, 4.0 AS max, CAST('3.0,4.0' AS text) AS bin_text
|
98468
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
98469
|
+
CASE
|
98470
|
+
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)
|
98471
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
98472
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
98473
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
98474
|
+
END
|
98475
|
+
) GROUP BY _active_reporter_dimension_likes[0m
|
98476
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
98477
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98478
|
+
[1m[35m (1.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98479
|
+
[1m[36mAuthor Create (1.7ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.216589"], ["updated_at", "2021-04-08 01:40:47.216589"], ["name", "James Joyce"]]
|
98480
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98481
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98482
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98483
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.223170"], ["updated_at", "2021-04-08 01:40:47.223170"], ["author_id", 3107], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
98484
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98485
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98486
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98487
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.228149"], ["updated_at", "2021-04-08 01:40:47.228149"], ["author_id", 3107], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98488
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98489
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98490
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98491
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.233183"], ["updated_at", "2021-04-08 01:40:47.233183"], ["author_id", 3107], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
98492
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98493
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98494
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98495
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.237089"], ["updated_at", "2021-04-08 01:40:47.237089"], ["author_id", 3107], ["status", 2], ["likes", 3]]
|
98496
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98497
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98498
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.240438"], ["updated_at", "2021-04-08 01:40:47.240438"], ["name", "Virginia Woolf"]]
|
98499
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98500
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98501
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98502
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.255657"], ["updated_at", "2021-04-08 01:40:47.255657"], ["author_id", 3108], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98503
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98504
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98505
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98506
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.258827"], ["updated_at", "2021-04-08 01:40:47.258827"], ["author_id", 3108], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
98507
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98508
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98509
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98510
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.261684"], ["updated_at", "2021-04-08 01:40:47.261684"], ["author_id", 3108], ["status", 2], ["likes", 3]]
|
98511
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98512
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98513
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.264052"], ["updated_at", "2021-04-08 01:40:47.264052"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98514
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98515
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98516
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.265975"], ["updated_at", "2021-04-08 01:40:47.265975"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
98517
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98518
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
98519
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id"[0m
|
98520
|
+
[1m[36mPost Exists? (0.9ms)[0m [1m[34mSELECT 1 AS one FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98521
|
+
[1m[36mPost Load (1.9ms)[0m [1m[34mSELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
98522
|
+
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
|
98523
|
+
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
|
98524
|
+
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
|
98525
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
98526
|
+
CASE
|
98527
|
+
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)
|
98528
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
98529
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
98530
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
98531
|
+
END
|
98532
|
+
) GROUP BY _active_reporter_dimension_published_at, _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
98533
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
98534
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98535
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98536
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.293883"], ["updated_at", "2021-04-08 01:40:47.293883"], ["name", "James Joyce"]]
|
98537
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98538
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98539
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98540
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.297171"], ["updated_at", "2021-04-08 01:40:47.297171"], ["author_id", 3109], ["status", 2], ["likes", 1], ["published_at", "2015-10-01 00:00:00"]]
|
98541
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98542
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98543
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98544
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.300387"], ["updated_at", "2021-04-08 01:40:47.300387"], ["author_id", 3109], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98545
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98546
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98547
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98548
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.303876"], ["updated_at", "2021-04-08 01:40:47.303876"], ["author_id", 3109], ["status", 2], ["likes", 1], ["published_at", "2015-11-01 00:00:00"]]
|
98549
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98550
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "James Joyce"], ["LIMIT", 1]]
|
98551
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98552
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.307834"], ["updated_at", "2021-04-08 01:40:47.307834"], ["author_id", 3109], ["status", 2], ["likes", 3]]
|
98553
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98554
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98555
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.310099"], ["updated_at", "2021-04-08 01:40:47.310099"], ["name", "Virginia Woolf"]]
|
98556
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98557
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98558
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98559
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.312875"], ["updated_at", "2021-04-08 01:40:47.312875"], ["author_id", 3110], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98560
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98561
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98562
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98563
|
+
[1m[36mPost Create (1.1ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.315936"], ["updated_at", "2021-04-08 01:40:47.315936"], ["author_id", 3110], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
98564
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98565
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Virginia Woolf"], ["LIMIT", 1]]
|
98566
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98567
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.319551"], ["updated_at", "2021-04-08 01:40:47.319551"], ["author_id", 3110], ["status", 2], ["likes", 3]]
|
98568
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98569
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98570
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.321926"], ["updated_at", "2021-04-08 01:40:47.321926"], ["status", 2], ["likes", 2], ["published_at", "2015-10-01 00:00:00"]]
|
98571
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98572
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98573
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes", "published_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.323704"], ["updated_at", "2021-04-08 01:40:47.323704"], ["status", 2], ["likes", 3], ["published_at", "2015-11-01 00:00:00"]]
|
98574
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98575
|
+
[1m[36mPost Load (1.0ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author DESC NULLS LAST[0m
|
98576
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
98577
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
98578
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98579
|
+
[1m[36mPost Load (1.2ms)[0m [1m[34mSELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
|
98580
|
+
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
|
98581
|
+
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
|
98582
|
+
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
|
98583
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
98584
|
+
CASE
|
98585
|
+
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)
|
98586
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
98587
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
98588
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
98589
|
+
END
|
98590
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
98591
|
+
[1m[36mPost Load (0.9ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS LAST[0m
|
98592
|
+
[1m[36mPost Load (0.9ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author DESC NULLS FIRST[0m
|
98593
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
98594
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
98595
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98596
|
+
[1m[36mPost Load (2.2ms)[0m [1m[34mSELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
|
98597
|
+
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
|
98598
|
+
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
|
98599
|
+
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
|
98600
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
98601
|
+
CASE
|
98602
|
+
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)
|
98603
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
98604
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
98605
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
98606
|
+
END
|
98607
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
98608
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MIN(posts.published_at) FROM "posts"[0m
|
98609
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.published_at) FROM "posts"[0m
|
98610
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.published_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98611
|
+
[1m[36mPost Load (1.2ms)[0m [1m[34mSELECT _active_reporter_dimension_published_at_bin_table.bin_text AS _active_reporter_dimension_published_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_total_likes, AVG(posts.likes) AS _report_aggregator_mean_likes, MIN(posts.likes) AS _report_aggregator_min_likes, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" INNER JOIN (
|
98612
|
+
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
|
98613
|
+
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
|
98614
|
+
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
|
98615
|
+
) AS _active_reporter_dimension_published_at_bin_table ON (
|
98616
|
+
CASE
|
98617
|
+
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)
|
98618
|
+
WHEN _active_reporter_dimension_published_at_bin_table.min IS NULL THEN (posts.published_at < _active_reporter_dimension_published_at_bin_table.max)
|
98619
|
+
WHEN _active_reporter_dimension_published_at_bin_table.max IS NULL THEN (posts.published_at >= _active_reporter_dimension_published_at_bin_table.min)
|
98620
|
+
ELSE ((posts.published_at >= _active_reporter_dimension_published_at_bin_table.min) AND (posts.published_at < _active_reporter_dimension_published_at_bin_table.max))
|
98621
|
+
END
|
98622
|
+
) GROUP BY _active_reporter_dimension_published_at[0m
|
98623
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
98624
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98625
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98626
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98627
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.379011"], ["updated_at", "2021-04-08 01:40:47.379011"], ["name", "Alice"]]
|
98628
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98629
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98630
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.381262"], ["updated_at", "2021-04-08 01:40:47.381262"], ["author_id", 3111], ["status", 2], ["likes", 3]]
|
98631
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98632
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98633
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98634
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.384322"], ["updated_at", "2021-04-08 01:40:47.384322"], ["author_id", 3111], ["status", 2], ["likes", 2]]
|
98635
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98636
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98637
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98638
|
+
[1m[36mAuthor Create (0.5ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.387184"], ["updated_at", "2021-04-08 01:40:47.387184"], ["name", "Bob"]]
|
98639
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98640
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98641
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.389346"], ["updated_at", "2021-04-08 01:40:47.389346"], ["author_id", 3112], ["status", 2], ["likes", 4]]
|
98642
|
+
[1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98643
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98644
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98645
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.392757"], ["updated_at", "2021-04-08 01:40:47.392757"], ["author_id", 3112], ["status", 2], ["likes", 1]]
|
98646
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98647
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98648
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98649
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.396023"], ["updated_at", "2021-04-08 01:40:47.396023"], ["author_id", 3112], ["status", 2], ["likes", 5]]
|
98650
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98651
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
98652
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98653
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.399335"], ["updated_at", "2021-04-08 01:40:47.399335"], ["name", "Chester"]]
|
98654
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98655
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98656
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.401143"], ["updated_at", "2021-04-08 01:40:47.401143"], ["author_id", 3113], ["status", 2], ["likes", 10]]
|
98657
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98658
|
+
[1m[36mPost Load (1.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, ARRAY_AGG(posts.id) AS _report_aggregator_post_ids FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
98659
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98660
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98661
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98662
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98663
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.408687"], ["updated_at", "2021-04-08 01:40:47.408687"], ["name", "Alice"]]
|
98664
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98665
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98666
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.410337"], ["updated_at", "2021-04-08 01:40:47.410337"], ["author_id", 3114], ["status", 2], ["likes", 3]]
|
98667
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98668
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98669
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98670
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.413946"], ["updated_at", "2021-04-08 01:40:47.413946"], ["author_id", 3114], ["status", 2], ["likes", 2]]
|
98671
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98672
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98673
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98674
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.417040"], ["updated_at", "2021-04-08 01:40:47.417040"], ["name", "Bob"]]
|
98675
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98676
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98677
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.418552"], ["updated_at", "2021-04-08 01:40:47.418552"], ["author_id", 3115], ["status", 2], ["likes", 4]]
|
98678
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98679
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98680
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98681
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.421592"], ["updated_at", "2021-04-08 01:40:47.421592"], ["author_id", 3115], ["status", 2], ["likes", 1]]
|
98682
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98683
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98684
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98685
|
+
[1m[36mPost Create (1.0ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.425078"], ["updated_at", "2021-04-08 01:40:47.425078"], ["author_id", 3115], ["status", 2], ["likes", 5]]
|
98686
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98687
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
98688
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98689
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.429058"], ["updated_at", "2021-04-08 01:40:47.429058"], ["name", "Chester"]]
|
98690
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98691
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98692
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.430762"], ["updated_at", "2021-04-08 01:40:47.430762"], ["author_id", 3116], ["status", 2], ["likes", 10]]
|
98693
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98694
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, MAX(posts.likes) AS _report_aggregator_max_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
98695
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98696
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98697
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98698
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98699
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.438128"], ["updated_at", "2021-04-08 01:40:47.438128"], ["name", "Alice"]]
|
98700
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98701
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98702
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.440105"], ["updated_at", "2021-04-08 01:40:47.440105"], ["author_id", 3117], ["status", 2], ["likes", 3]]
|
98703
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98704
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98705
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98706
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.443536"], ["updated_at", "2021-04-08 01:40:47.443536"], ["author_id", 3117], ["status", 2], ["likes", 2]]
|
98707
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98708
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98709
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98710
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.446786"], ["updated_at", "2021-04-08 01:40:47.446786"], ["name", "Bob"]]
|
98711
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98712
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98713
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.448853"], ["updated_at", "2021-04-08 01:40:47.448853"], ["author_id", 3118], ["status", 2], ["likes", 4]]
|
98714
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98715
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98716
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98717
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.451998"], ["updated_at", "2021-04-08 01:40:47.451998"], ["author_id", 3118], ["status", 2], ["likes", 1]]
|
98718
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98719
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98720
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98721
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.454728"], ["updated_at", "2021-04-08 01:40:47.454728"], ["author_id", 3118], ["status", 2], ["likes", 5]]
|
98722
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98723
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
98724
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98725
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.457285"], ["updated_at", "2021-04-08 01:40:47.457285"], ["name", "Chester"]]
|
98726
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98727
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98728
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.458843"], ["updated_at", "2021-04-08 01:40:47.458843"], ["author_id", 3119], ["status", 2], ["likes", 10]]
|
98729
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98730
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, MIN(posts.likes) AS _report_aggregator_min_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
98731
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98732
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98733
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98734
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98735
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.465756"], ["updated_at", "2021-04-08 01:40:47.465756"], ["name", "Alice"]]
|
98736
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98737
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98738
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.467335"], ["updated_at", "2021-04-08 01:40:47.467335"], ["author_id", 3120], ["status", 2], ["likes", 3]]
|
98739
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98740
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98741
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98742
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.469863"], ["updated_at", "2021-04-08 01:40:47.469863"], ["author_id", 3120], ["status", 2], ["likes", 2]]
|
98743
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98744
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98745
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98746
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.472910"], ["updated_at", "2021-04-08 01:40:47.472910"], ["name", "Bob"]]
|
98747
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98748
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98749
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.474525"], ["updated_at", "2021-04-08 01:40:47.474525"], ["author_id", 3121], ["status", 2], ["likes", 4]]
|
98750
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98751
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98752
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98753
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.477818"], ["updated_at", "2021-04-08 01:40:47.477818"], ["author_id", 3121], ["status", 2], ["likes", 1]]
|
98754
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98755
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98756
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98757
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.480963"], ["updated_at", "2021-04-08 01:40:47.480963"], ["author_id", 3121], ["status", 2], ["likes", 5]]
|
98758
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98759
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
98760
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98761
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.483877"], ["updated_at", "2021-04-08 01:40:47.483877"], ["name", "Chester"]]
|
98762
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98763
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98764
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.485558"], ["updated_at", "2021-04-08 01:40:47.485558"], ["author_id", 3122], ["status", 2], ["likes", 10]]
|
98765
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98766
|
+
[1m[36mPost Load (0.8ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, AVG(posts.likes) AS _report_aggregator_mean_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
98767
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98768
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98769
|
+
[1m[36mAuthor Load (0.3ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98770
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98771
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.492940"], ["updated_at", "2021-04-08 01:40:47.492940"], ["name", "Alice"]]
|
98772
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98773
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98774
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.494656"], ["updated_at", "2021-04-08 01:40:47.494656"], ["author_id", 3123], ["status", 2], ["likes", 3]]
|
98775
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98776
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98777
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98778
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.497317"], ["updated_at", "2021-04-08 01:40:47.497317"], ["author_id", 3123], ["status", 2], ["likes", 2]]
|
98779
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98780
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98781
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98782
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.499687"], ["updated_at", "2021-04-08 01:40:47.499687"], ["name", "Bob"]]
|
98783
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98784
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98785
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.501080"], ["updated_at", "2021-04-08 01:40:47.501080"], ["author_id", 3124], ["status", 2], ["likes", 4]]
|
98786
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98787
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98788
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98789
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.503416"], ["updated_at", "2021-04-08 01:40:47.503416"], ["author_id", 3124], ["status", 2], ["likes", 1]]
|
98790
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98791
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98792
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98793
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.505834"], ["updated_at", "2021-04-08 01:40:47.505834"], ["author_id", 3124], ["status", 2], ["likes", 5]]
|
98794
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98795
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
98796
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98797
|
+
[1m[36mAuthor Create (0.9ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.508267"], ["updated_at", "2021-04-08 01:40:47.508267"], ["name", "Chester"]]
|
98798
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98799
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98800
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.510279"], ["updated_at", "2021-04-08 01:40:47.510279"], ["author_id", 3125], ["status", 2], ["likes", 10]]
|
98801
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98802
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, SUM(posts.likes) AS _report_aggregator_total_likes FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
98803
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98804
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98805
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98806
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98807
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.516330"], ["updated_at", "2021-04-08 01:40:47.516330"], ["name", "Alice"]]
|
98808
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98809
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98810
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.517947"], ["updated_at", "2021-04-08 01:40:47.517947"], ["author_id", 3126], ["status", 2], ["likes", 3]]
|
98811
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98812
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98813
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98814
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.520464"], ["updated_at", "2021-04-08 01:40:47.520464"], ["author_id", 3126], ["status", 2], ["likes", 2]]
|
98815
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98816
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98817
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98818
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.522790"], ["updated_at", "2021-04-08 01:40:47.522790"], ["name", "Bob"]]
|
98819
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98820
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98821
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.524569"], ["updated_at", "2021-04-08 01:40:47.524569"], ["author_id", 3127], ["status", 2], ["likes", 4]]
|
98822
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98823
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98824
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98825
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.527371"], ["updated_at", "2021-04-08 01:40:47.527371"], ["author_id", 3127], ["status", 2], ["likes", 1]]
|
98826
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98827
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98828
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98829
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.529864"], ["updated_at", "2021-04-08 01:40:47.529864"], ["author_id", 3127], ["status", 2], ["likes", 5]]
|
98830
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98831
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Chester"], ["LIMIT", 1]]
|
98832
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98833
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.532171"], ["updated_at", "2021-04-08 01:40:47.532171"], ["name", "Chester"]]
|
98834
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98835
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98836
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.533600"], ["updated_at", "2021-04-08 01:40:47.533600"], ["author_id", 3128], ["status", 2], ["likes", 10]]
|
98837
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98838
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, posts.status AS _active_reporter_dimension_status, COUNT(DISTINCT posts.id) AS _report_aggregator_count FROM "posts" LEFT OUTER JOIN "authors" ON "authors"."id" = "posts"."author_id" GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_status ORDER BY _active_reporter_dimension_author ASC NULLS FIRST, _active_reporter_dimension_status ASC NULLS FIRST[0m
|
98839
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98840
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98841
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98842
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98843
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98844
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98845
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98846
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98847
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98848
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98849
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98850
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98851
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98852
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98853
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98854
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98855
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98856
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98857
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98858
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98859
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98860
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98861
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98862
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98863
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98864
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98865
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98866
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98867
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98868
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98869
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98870
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98871
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98872
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98873
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98874
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98875
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98876
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98877
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98878
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98879
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
98880
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
98881
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98882
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.564904"], ["updated_at", "2021-04-08 01:40:47.564904"], ["status", 2], ["likes", 3]]
|
98883
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98884
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98885
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.566681"], ["updated_at", "2021-04-08 01:40:47.566681"], ["status", 2], ["likes", 10]]
|
98886
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98887
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98888
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.568227"], ["updated_at", "2021-04-08 01:40:47.568227"], ["status", 2], ["likes", 1]]
|
98889
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98890
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
98891
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
98892
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98893
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98894
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
98895
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98896
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98897
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status", "likes") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.588569"], ["updated_at", "2021-04-08 01:40:47.588569"], ["status", 2], ["likes", 2]]
|
98898
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98899
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
98900
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
98901
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98902
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98903
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98904
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98905
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98906
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98907
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.595164"], ["updated_at", "2021-04-08 01:40:47.595164"], ["name", "Alice"]]
|
98908
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98909
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98910
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.596520"], ["updated_at", "2021-04-08 01:40:47.596520"], ["author_id", 3129], ["status", 2]]
|
98911
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98912
|
+
[1m[36mAuthor Load (0.1ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98913
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98914
|
+
[1m[36mAuthor Create (0.2ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.598556"], ["updated_at", "2021-04-08 01:40:47.598556"], ["name", "Bob"]]
|
98915
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98916
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98917
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.599750"], ["updated_at", "2021-04-08 01:40:47.599750"], ["author_id", 3130], ["status", 2]]
|
98918
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98919
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98920
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.601159"], ["updated_at", "2021-04-08 01:40:47.601159"], ["status", 2]]
|
98921
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98922
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice'))[0m
|
98923
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IS NULL OR authors.name IN (NULL))[0m
|
98924
|
+
[1m[36mPost Load (0.9ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IS NULL OR authors.name IN ('Alice'))[0m
|
98925
|
+
[1m[36mPost Load (0.9ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN ('Alice','Bob'))[0m
|
98926
|
+
[1m[36mPost Load (1.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id WHERE (authors.name IN (NULL))[0m
|
98927
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
98928
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98929
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98930
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98931
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.612818"], ["updated_at", "2021-04-08 01:40:47.612818"], ["name", "Alice"]]
|
98932
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98933
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98934
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.614209"], ["updated_at", "2021-04-08 01:40:47.614209"], ["author_id", 3131], ["status", 2]]
|
98935
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98936
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Alice"], ["LIMIT", 1]]
|
98937
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98938
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.616271"], ["updated_at", "2021-04-08 01:40:47.616271"], ["author_id", 3131], ["status", 2]]
|
98939
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98940
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98941
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "status") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.617913"], ["updated_at", "2021-04-08 01:40:47.617913"], ["status", 2]]
|
98942
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98943
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98944
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98945
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.619993"], ["updated_at", "2021-04-08 01:40:47.619993"], ["name", "Bob"]]
|
98946
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98947
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98948
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.621375"], ["updated_at", "2021-04-08 01:40:47.621375"], ["author_id", 3132], ["status", 2]]
|
98949
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98950
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98951
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98952
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.623674"], ["updated_at", "2021-04-08 01:40:47.623674"], ["author_id", 3132], ["status", 2]]
|
98953
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98954
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Bob"], ["LIMIT", 1]]
|
98955
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
98956
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.625664"], ["updated_at", "2021-04-08 01:40:47.625664"], ["author_id", 3132], ["status", 2]]
|
98957
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
98958
|
+
[1m[36mPost Load (0.6ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(*) AS count FROM "posts" LEFT OUTER JOIN authors ON authors.id = posts.author_id GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
98959
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98960
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98961
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98962
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98963
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
98964
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98965
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98966
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98967
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98968
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98969
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98970
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98971
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98972
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98973
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98974
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98975
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98976
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98977
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98978
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98979
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98980
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98981
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98982
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98983
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98984
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
98985
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98986
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98987
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98988
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98989
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98990
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98991
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
98992
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98993
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98994
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98995
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98996
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98997
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
98998
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
98999
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99000
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99001
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99002
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99003
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99004
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99005
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.683837"], ["updated_at", "2021-04-08 01:40:47.683837"], ["name", "Tammy"]]
|
99006
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99007
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99008
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2019-12-18 00:00:00"], ["updated_at", "2021-04-08 01:40:47.685410"], ["author_id", 3133], ["status", 2], ["likes", 23]]
|
99009
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99010
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99011
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99012
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.687938"], ["author_id", 3133], ["status", 2], ["likes", 7]]
|
99013
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99014
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99015
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99016
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.690378"], ["author_id", 3133], ["status", 2], ["likes", 4]]
|
99017
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99018
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99019
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99020
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.692748"], ["author_id", 3133], ["status", 2], ["likes", 11]]
|
99021
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99022
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99023
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99024
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.695155"], ["updated_at", "2021-04-08 01:40:47.695155"], ["name", "Timmy"]]
|
99025
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99026
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99027
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.696598"], ["author_id", 3134], ["status", 2], ["likes", 3]]
|
99028
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99029
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99030
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99031
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-02-27 00:00:00"], ["updated_at", "2021-04-08 01:40:47.698963"], ["author_id", 3134], ["status", 2], ["likes", 24]]
|
99032
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99033
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99034
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99035
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-08 01:40:47.701517"], ["author_id", 3134], ["status", 2]]
|
99036
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99037
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99038
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99039
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.704214"], ["author_id", 3134], ["status", 2], ["likes", 19]]
|
99040
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99041
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99042
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99043
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-04-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.706872"], ["author_id", 3134], ["status", 2], ["likes", 8]]
|
99044
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99045
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')[0m
|
99046
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99047
|
+
[1m[36mPost Load (1.2ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
99048
|
+
SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99049
|
+
SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99050
|
+
SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99051
|
+
SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
|
99052
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
99053
|
+
CASE
|
99054
|
+
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)
|
99055
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
99056
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
99057
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
99058
|
+
END
|
99059
|
+
) WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
99060
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
99061
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
99062
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99063
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99064
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.728001"], ["updated_at", "2021-04-08 01:40:47.728001"], ["name", "Tammy"]]
|
99065
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99066
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99067
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2019-12-18 00:00:00"], ["updated_at", "2021-04-08 01:40:47.729623"], ["author_id", 3135], ["status", 2], ["likes", 23]]
|
99068
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99069
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99070
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99071
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.732121"], ["author_id", 3135], ["status", 2], ["likes", 7]]
|
99072
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99073
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99074
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99075
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.734480"], ["author_id", 3135], ["status", 2], ["likes", 4]]
|
99076
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99077
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99078
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99079
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.736944"], ["author_id", 3135], ["status", 2], ["likes", 11]]
|
99080
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99081
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99082
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99083
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.739328"], ["updated_at", "2021-04-08 01:40:47.739328"], ["name", "Timmy"]]
|
99084
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99085
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99086
|
+
[1m[36mPost Create (1.0ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.740686"], ["author_id", 3136], ["status", 2], ["likes", 3]]
|
99087
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99088
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99089
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99090
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-02-27 00:00:00"], ["updated_at", "2021-04-08 01:40:47.743910"], ["author_id", 3136], ["status", 2], ["likes", 24]]
|
99091
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99092
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99093
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99094
|
+
[1m[36mPost Create (1.1ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-08 01:40:47.746305"], ["author_id", 3136], ["status", 2]]
|
99095
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99096
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99097
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99098
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.749463"], ["author_id", 3136], ["status", 2], ["likes", 19]]
|
99099
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99100
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99101
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99102
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-04-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.752802"], ["author_id", 3136], ["status", 2], ["likes", 8]]
|
99103
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99104
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')[0m
|
99105
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99106
|
+
[1m[36mPost Load (1.2ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
99107
|
+
SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99108
|
+
SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99109
|
+
SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99110
|
+
SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
|
99111
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
99112
|
+
CASE
|
99113
|
+
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)
|
99114
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
99115
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
99116
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
99117
|
+
END
|
99118
|
+
) WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
99119
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
99120
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99121
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99122
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99123
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.772954"], ["updated_at", "2021-04-08 01:40:47.772954"], ["name", "Tammy"]]
|
99124
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99125
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99126
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2019-12-18 00:00:00"], ["updated_at", "2021-04-08 01:40:47.774731"], ["author_id", 3137], ["status", 2], ["likes", 23]]
|
99127
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99128
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99129
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99130
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.777550"], ["author_id", 3137], ["status", 2], ["likes", 7]]
|
99131
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99132
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99133
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99134
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.780160"], ["author_id", 3137], ["status", 2], ["likes", 4]]
|
99135
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99136
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99137
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99138
|
+
[1m[36mPost Create (3.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.782624"], ["author_id", 3137], ["status", 2], ["likes", 11]]
|
99139
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99140
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99141
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99142
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.788930"], ["updated_at", "2021-04-08 01:40:47.788930"], ["name", "Timmy"]]
|
99143
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99144
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99145
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.790684"], ["author_id", 3138], ["status", 2], ["likes", 3]]
|
99146
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99147
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99148
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99149
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-02-27 00:00:00"], ["updated_at", "2021-04-08 01:40:47.793176"], ["author_id", 3138], ["status", 2], ["likes", 24]]
|
99150
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99151
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99152
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99153
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-08 01:40:47.795703"], ["author_id", 3138], ["status", 2]]
|
99154
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99155
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99156
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99157
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.798093"], ["author_id", 3138], ["status", 2], ["likes", 19]]
|
99158
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99159
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99160
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99161
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-04-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.800486"], ["author_id", 3138], ["status", 2], ["likes", 8]]
|
99162
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99163
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')[0m
|
99164
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99165
|
+
[1m[36mPost Load (1.2ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
99166
|
+
SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99167
|
+
SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99168
|
+
SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99169
|
+
SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
|
99170
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
99171
|
+
CASE
|
99172
|
+
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)
|
99173
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
99174
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
99175
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
99176
|
+
END
|
99177
|
+
) WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
99178
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99179
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99180
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99181
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99182
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.818154"], ["updated_at", "2021-04-08 01:40:47.818154"], ["name", "Tammy"]]
|
99183
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99184
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99185
|
+
[1m[36mPost Create (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2019-12-18 00:00:00"], ["updated_at", "2021-04-08 01:40:47.819845"], ["author_id", 3139], ["status", 2], ["likes", 23]]
|
99186
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99187
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99188
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99189
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.823227"], ["author_id", 3139], ["status", 2], ["likes", 7]]
|
99190
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99191
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99192
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99193
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.825845"], ["author_id", 3139], ["status", 2], ["likes", 4]]
|
99194
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99195
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99196
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99197
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.828420"], ["author_id", 3139], ["status", 2], ["likes", 11]]
|
99198
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99199
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99200
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99201
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.830849"], ["updated_at", "2021-04-08 01:40:47.830849"], ["name", "Timmy"]]
|
99202
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99203
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99204
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.832180"], ["author_id", 3140], ["status", 2], ["likes", 3]]
|
99205
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99206
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99207
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99208
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-02-27 00:00:00"], ["updated_at", "2021-04-08 01:40:47.834456"], ["author_id", 3140], ["status", 2], ["likes", 24]]
|
99209
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99210
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99211
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99212
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-08 01:40:47.836854"], ["author_id", 3140], ["status", 2]]
|
99213
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99214
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99215
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99216
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.839241"], ["author_id", 3140], ["status", 2], ["likes", 19]]
|
99217
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99218
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99219
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99220
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-04-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.841539"], ["author_id", 3140], ["status", 2], ["likes", 8]]
|
99221
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99222
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')[0m
|
99223
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99224
|
+
[1m[36mPost Load (1.0ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
99225
|
+
SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99226
|
+
SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99227
|
+
SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99228
|
+
SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
|
99229
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
99230
|
+
CASE
|
99231
|
+
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)
|
99232
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
99233
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
99234
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
99235
|
+
END
|
99236
|
+
) WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
99237
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
99238
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
99239
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
99240
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99241
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99242
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99243
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.865845"], ["updated_at", "2021-04-08 01:40:47.865845"], ["name", "Tammy"]]
|
99244
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99245
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99246
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2019-12-18 00:00:00"], ["updated_at", "2021-04-08 01:40:47.867497"], ["author_id", 3141], ["status", 2], ["likes", 23]]
|
99247
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99248
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99249
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99250
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.870004"], ["author_id", 3141], ["status", 2], ["likes", 7]]
|
99251
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99252
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99253
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99254
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.872310"], ["author_id", 3141], ["status", 2], ["likes", 4]]
|
99255
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99256
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99257
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99258
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.874619"], ["author_id", 3141], ["status", 2], ["likes", 11]]
|
99259
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99260
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99261
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99262
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.876861"], ["updated_at", "2021-04-08 01:40:47.876861"], ["name", "Timmy"]]
|
99263
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99264
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99265
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.878228"], ["author_id", 3142], ["status", 2], ["likes", 3]]
|
99266
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99267
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99268
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99269
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-02-27 00:00:00"], ["updated_at", "2021-04-08 01:40:47.880437"], ["author_id", 3142], ["status", 2], ["likes", 24]]
|
99270
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99271
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99272
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99273
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-02-28 00:00:00"], ["updated_at", "2021-04-08 01:40:47.882623"], ["author_id", 3142], ["status", 2]]
|
99274
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99275
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99276
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99277
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.884773"], ["author_id", 3142], ["status", 2], ["likes", 19]]
|
99278
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99279
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99280
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99281
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-04-08 00:00:00"], ["updated_at", "2021-04-08 01:40:47.886900"], ["author_id", 3142], ["status", 2], ["likes", 8]]
|
99282
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99283
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00')[0m
|
99284
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (posts.created_at >= '2020-01-01 00:00:00') AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99285
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE ((posts.created_at >= '2019-12-01 00:00:00' AND posts.created_at < '2020-01-01 00:00:00')) AND (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99286
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
99287
|
+
SELECT CAST('2019-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-12-01 00:00:00 UTC,2020-01-01 00:00:00 UTC' AS text) AS bin_text
|
99288
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
99289
|
+
CASE
|
99290
|
+
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)
|
99291
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
99292
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
99293
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
99294
|
+
END
|
99295
|
+
) WHERE ((posts.created_at >= '2019-12-01 00:00:00' AND posts.created_at < '2020-01-01 00:00:00')) GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST LIMIT $1[0m [["LIMIT", 1]]
|
99296
|
+
[1m[36mPost Load (0.7ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
99297
|
+
SELECT CAST('2019-12-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS max, CAST('2019-12-01 00:00:00 UTC,2020-01-01 00:00:00 UTC' AS text) AS bin_text
|
99298
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
99299
|
+
CASE
|
99300
|
+
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)
|
99301
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
99302
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
99303
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
99304
|
+
END
|
99305
|
+
) WHERE ((posts.created_at >= '2019-12-01 00:00:00' AND posts.created_at < '2020-01-01 00:00:00')) GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
99306
|
+
[1m[36mPost Load (1.4ms)[0m [1m[34mSELECT authors.name AS _active_reporter_dimension_author, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" INNER JOIN (
|
99307
|
+
SELECT CAST('2020-01-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-01-01 00:00:00 UTC,2020-02-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99308
|
+
SELECT CAST('2020-02-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-02-01 00:00:00 UTC,2020-03-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99309
|
+
SELECT CAST('2020-03-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-03-01 00:00:00 UTC,2020-04-01 00:00:00 UTC' AS text) AS bin_text UNION
|
99310
|
+
SELECT CAST('2020-04-01 00:00:00' AS timestamp with time zone) AS min, CAST('2020-05-01 00:00:00' AS timestamp with time zone) AS max, CAST('2020-04-01 00:00:00 UTC,2020-05-01 00:00:00 UTC' AS text) AS bin_text
|
99311
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
99312
|
+
CASE
|
99313
|
+
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)
|
99314
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
99315
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
99316
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
99317
|
+
END
|
99318
|
+
) WHERE (posts.created_at >= '2020-01-01 00:00:00') GROUP BY _active_reporter_dimension_author, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_author ASC NULLS FIRST[0m
|
99319
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
99320
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
99321
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99322
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99323
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99324
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99325
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99326
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99327
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
99328
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99329
|
+
[1m[36mAuthor Create (0.4ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.919157"], ["updated_at", "2021-04-08 01:40:47.919157"], ["name", "Phil"]]
|
99330
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99331
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99332
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.920952"], ["author_id", 3143], ["status", 2]]
|
99333
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99334
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
99335
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99336
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.923499"], ["author_id", 3143], ["status", 2]]
|
99337
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99338
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
99339
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99340
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.925816"], ["updated_at", "2021-04-08 01:40:47.925816"], ["name", "Phyllis"]]
|
99341
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99342
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99343
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.927235"], ["author_id", 3144], ["status", 2]]
|
99344
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99345
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
99346
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99347
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.929716"], ["author_id", 3144], ["status", 2]]
|
99348
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99349
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
99350
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99351
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99352
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
99353
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99354
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.934761"], ["updated_at", "2021-04-08 01:40:47.934761"], ["name", "Phil"]]
|
99355
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99356
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99357
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.936136"], ["author_id", 3145], ["status", 2]]
|
99358
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99359
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
99360
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99361
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.938311"], ["author_id", 3145], ["status", 2]]
|
99362
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99363
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
99364
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99365
|
+
[1m[36mAuthor Create (0.2ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.940528"], ["updated_at", "2021-04-08 01:40:47.940528"], ["name", "Phyllis"]]
|
99366
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99367
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99368
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.941804"], ["author_id", 3146], ["status", 2]]
|
99369
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99370
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phyllis"], ["LIMIT", 1]]
|
99371
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99372
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.944091"], ["author_id", 3146], ["status", 2]]
|
99373
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99374
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT "posts".* FROM "posts"[0m
|
99375
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99376
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99377
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
99378
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99379
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.949493"], ["updated_at", "2021-04-08 01:40:47.949493"], ["name", "Phil"]]
|
99380
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99381
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99382
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.950920"], ["author_id", 3147], ["status", 2]]
|
99383
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99384
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Phil"], ["LIMIT", 1]]
|
99385
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99386
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.953264"], ["author_id", 3147], ["status", 2]]
|
99387
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99388
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT "posts".* FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('Phil'))[0m
|
99389
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99390
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99391
|
+
[1m[36mPost Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('')) LIMIT $1[0m [["LIMIT", 1]]
|
99392
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99393
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99394
|
+
[1m[36mPost Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IS NULL OR authors.name IN (NULL)) LIMIT $1[0m [["LIMIT", 1]]
|
99395
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99396
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99397
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99398
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
99399
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99400
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99401
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99402
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99403
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99404
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99405
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99406
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99407
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99408
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99409
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99410
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99411
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99412
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99413
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99414
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99415
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99416
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99417
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99418
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99419
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.976641"], ["updated_at", "2021-04-08 01:40:47.976641"], ["name", "Timmy"]]
|
99420
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99421
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99422
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.978275"], ["author_id", 3148], ["status", 2], ["likes", 1]]
|
99423
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99424
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99425
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99426
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.980606"], ["author_id", 3148], ["status", 2], ["likes", 2]]
|
99427
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99428
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99429
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99430
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.982951"], ["updated_at", "2021-04-08 01:40:47.982951"], ["name", "Tammy"]]
|
99431
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99432
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99433
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.984372"], ["author_id", 3149], ["status", 2], ["likes", 3]]
|
99434
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99435
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99436
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99437
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.986650"], ["author_id", 3149], ["status", 2], ["likes", 4]]
|
99438
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99439
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99440
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99441
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-15 00:00:00"], ["updated_at", "2021-04-08 01:40:47.989198"], ["author_id", 3149], ["status", 2], ["likes", 2]]
|
99442
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99443
|
+
[1m[36mPost Load (0.4ms)[0m [1m[34mSELECT 'totals' AS _active_reporter_dimension_totals, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" GROUP BY _active_reporter_dimension_totals ORDER BY _active_reporter_dimension_totals ASC NULLS FIRST[0m
|
99444
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
99445
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99446
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99447
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99448
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:47.995492"], ["updated_at", "2021-04-08 01:40:47.995492"], ["name", "Timmy"]]
|
99449
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99450
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99451
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:47.997023"], ["author_id", 3150], ["status", 2], ["likes", 1]]
|
99452
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99453
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Timmy"], ["LIMIT", 1]]
|
99454
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99455
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-12 00:00:00"], ["updated_at", "2021-04-08 01:40:47.999359"], ["author_id", 3150], ["status", 2], ["likes", 2]]
|
99456
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99457
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99458
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99459
|
+
[1m[36mAuthor Create (0.3ms)[0m [1m[32mINSERT INTO "authors" ("created_at", "updated_at", "name") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", "2021-04-08 01:40:48.001579"], ["updated_at", "2021-04-08 01:40:48.001579"], ["name", "Tammy"]]
|
99460
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99461
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99462
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-01-15 00:00:00"], ["updated_at", "2021-04-08 01:40:48.002829"], ["author_id", 3151], ["status", 2], ["likes", 3]]
|
99463
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99464
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99465
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99466
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.004871"], ["author_id", 3151], ["status", 2], ["likes", 4]]
|
99467
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99468
|
+
[1m[36mAuthor Load (0.2ms)[0m [1m[34mSELECT "authors".* FROM "authors" WHERE "authors"."name" = $1 LIMIT $2[0m [["name", "Tammy"], ["LIMIT", 1]]
|
99469
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99470
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "author_id", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2020-03-15 00:00:00"], ["updated_at", "2021-04-08 01:40:48.007096"], ["author_id", 3151], ["status", 2], ["likes", 2]]
|
99471
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99472
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT 'totals' AS _active_reporter_dimension_totals, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" INNER JOIN "authors" ON "authors"."id" = "posts"."author_id" WHERE (authors.name IN ('Tammy')) GROUP BY _active_reporter_dimension_totals ORDER BY _active_reporter_dimension_totals ASC NULLS FIRST[0m
|
99473
|
+
[1m[36mPost Load (0.3ms)[0m [1m[34mSELECT 'totals' AS _active_reporter_dimension_totals, COUNT(DISTINCT posts.id) AS _report_aggregator_count, SUM(posts.likes) AS _report_aggregator_likes FROM "posts" GROUP BY _active_reporter_dimension_totals ORDER BY _active_reporter_dimension_totals ASC NULLS FIRST[0m
|
99474
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99475
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99476
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99477
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.014213"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99478
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99479
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99480
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.015974"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99481
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99482
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99483
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.017499"], ["title", "B"], ["status", 2], ["likes", 1]]
|
99484
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99485
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99486
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-08 01:40:48.019054"], ["title", "A"], ["status", 2], ["likes", 1]]
|
99487
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99488
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
99489
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
99490
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99491
|
+
[1m[36mPost Load (0.8ms)[0m [1m[34mSELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count, SUM(posts.likes) AS _report_aggregator_likes_count FROM "posts" INNER JOIN (
|
99492
|
+
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
|
99493
|
+
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
|
99494
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
99495
|
+
CASE
|
99496
|
+
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)
|
99497
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
99498
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
99499
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
99500
|
+
END
|
99501
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
99502
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99503
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99504
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99505
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.029819"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99506
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99507
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99508
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.031762"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99509
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99510
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99511
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.033382"], ["title", "B"], ["status", 2], ["likes", 1]]
|
99512
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99513
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99514
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-08 01:40:48.034923"], ["title", "A"], ["status", 2], ["likes", 1]]
|
99515
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99516
|
+
[1m[36mPost Load (0.5ms)[0m [1m[34mSELECT posts.title AS _active_reporter_dimension_title, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" GROUP BY _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
99517
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99518
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99519
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99520
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.040116"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99521
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99522
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99523
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.042232"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99524
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99525
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99526
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.044180"], ["title", "B"], ["status", 2], ["likes", 1]]
|
99527
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99528
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99529
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-08 01:40:48.045966"], ["title", "A"], ["status", 2], ["likes", 1]]
|
99530
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99531
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
99532
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
99533
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99534
|
+
[1m[36mPost Load (0.8ms)[0m [1m[34mSELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" INNER JOIN (
|
99535
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
99536
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
99537
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
99538
|
+
CASE
|
99539
|
+
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)
|
99540
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
99541
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
99542
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
99543
|
+
END
|
99544
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
99545
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99546
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99547
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99548
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.054489"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99549
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99550
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99551
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.056461"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99552
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99553
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99554
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.058124"], ["title", "B"], ["status", 2], ["likes", 1]]
|
99555
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99556
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99557
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-08 01:40:48.059690"], ["title", "A"], ["status", 2], ["likes", 1]]
|
99558
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99559
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
99560
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
99561
|
+
[1m[36mPost Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99562
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
99563
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
99564
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99565
|
+
[1m[36mPost Load (1.1ms)[0m [1m[34mSELECT posts.title AS _active_reporter_dimension_title, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, _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 (
|
99566
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
99567
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
99568
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
99569
|
+
CASE
|
99570
|
+
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)
|
99571
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
99572
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
99573
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
99574
|
+
END
|
99575
|
+
) INNER JOIN (
|
99576
|
+
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
|
99577
|
+
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
|
99578
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
99579
|
+
CASE
|
99580
|
+
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)
|
99581
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
99582
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
99583
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
99584
|
+
END
|
99585
|
+
) GROUP BY _active_reporter_dimension_title, _active_reporter_dimension_likes, _active_reporter_dimension_created_at ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
99586
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
99587
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99588
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99589
|
+
[1m[36mPost Create (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.135988"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99590
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99591
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99592
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.137857"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99593
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99594
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99595
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.139427"], ["title", "B"], ["status", 2], ["likes", 1]]
|
99596
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99597
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99598
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-08 01:40:48.140914"], ["title", "A"], ["status", 2], ["likes", 1]]
|
99599
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99600
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
99601
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99602
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99603
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.144108"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99604
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99605
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99606
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.145778"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99607
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99608
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99609
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.147447"], ["title", "B"], ["status", 2], ["likes", 1]]
|
99610
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99611
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99612
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-08 01:40:48.149025"], ["title", "A"], ["status", 2], ["likes", 1]]
|
99613
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99614
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
99615
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
99616
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
99617
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
99618
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99619
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.153401"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99620
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99621
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99622
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.155071"], ["title", "A"], ["status", 2], ["likes", 2]]
|
99623
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99624
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99625
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-01 00:00:00"], ["updated_at", "2021-04-08 01:40:48.156626"], ["title", "B"], ["status", 2], ["likes", 1]]
|
99626
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99627
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
99628
|
+
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at", "title", "status", "likes") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", "2016-01-02 00:00:00"], ["updated_at", "2021-04-08 01:40:48.158154"], ["title", "A"], ["status", 2], ["likes", 1]]
|
99629
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
99630
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.created_at) FROM "posts"[0m
|
99631
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX(posts.created_at) FROM "posts"[0m
|
99632
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.created_at IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99633
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MIN(posts.likes) FROM "posts"[0m
|
99634
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT MAX(posts.likes) FROM "posts"[0m
|
99635
|
+
[1m[36mPost Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "posts" WHERE (posts.likes IS NULL) LIMIT $1[0m [["LIMIT", 1]]
|
99636
|
+
[1m[36mPost Load (1.0ms)[0m [1m[34mSELECT _active_reporter_dimension_created_at_bin_table.bin_text AS _active_reporter_dimension_created_at, _active_reporter_dimension_likes_bin_table.bin_text AS _active_reporter_dimension_likes, posts.title AS _active_reporter_dimension_title, COUNT(DISTINCT posts.id) AS _report_aggregator_post_count FROM "posts" INNER JOIN (
|
99637
|
+
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
|
99638
|
+
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
|
99639
|
+
) AS _active_reporter_dimension_created_at_bin_table ON (
|
99640
|
+
CASE
|
99641
|
+
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)
|
99642
|
+
WHEN _active_reporter_dimension_created_at_bin_table.min IS NULL THEN (posts.created_at < _active_reporter_dimension_created_at_bin_table.max)
|
99643
|
+
WHEN _active_reporter_dimension_created_at_bin_table.max IS NULL THEN (posts.created_at >= _active_reporter_dimension_created_at_bin_table.min)
|
99644
|
+
ELSE ((posts.created_at >= _active_reporter_dimension_created_at_bin_table.min) AND (posts.created_at < _active_reporter_dimension_created_at_bin_table.max))
|
99645
|
+
END
|
99646
|
+
) INNER JOIN (
|
99647
|
+
SELECT 1.0 AS min, 2.0 AS max, CAST('1.0,2.0' AS text) AS bin_text UNION
|
99648
|
+
SELECT 2.0 AS min, 3.0 AS max, CAST('2.0,3.0' AS text) AS bin_text
|
99649
|
+
) AS _active_reporter_dimension_likes_bin_table ON (
|
99650
|
+
CASE
|
99651
|
+
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)
|
99652
|
+
WHEN _active_reporter_dimension_likes_bin_table.min IS NULL THEN (posts.likes < _active_reporter_dimension_likes_bin_table.max)
|
99653
|
+
WHEN _active_reporter_dimension_likes_bin_table.max IS NULL THEN (posts.likes >= _active_reporter_dimension_likes_bin_table.min)
|
99654
|
+
ELSE ((posts.likes >= _active_reporter_dimension_likes_bin_table.min) AND (posts.likes < _active_reporter_dimension_likes_bin_table.max))
|
99655
|
+
END
|
98355
99656
|
) GROUP BY _active_reporter_dimension_created_at, _active_reporter_dimension_likes, _active_reporter_dimension_title ORDER BY _active_reporter_dimension_title ASC NULLS FIRST[0m
|
98356
99657
|
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|