explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 8q4N

Settings
# exclusive inclusive rows x rows loops node
1. 33.602 24,285.120 ↑ 2.0 4 1

GroupAggregate (cost=1,389,466.66..1,389,538.57 rows=8 width=17) (actual time=24,254.174..24,285.120 rows=4 loops=1)

  • Group Key: o."OutcomeType
2. 180.325 24,251.518 ↓ 23.7 226,993 1

Sort (cost=1,389,466.66..1,389,490.60 rows=9,578 width=13) (actual time=24,216.932..24,251.518 rows=226,993 loops=1)

  • Sort Key: o."OutcomeType
  • Sort Method: external merge Disk: 5776kB
3. 470.123 24,071.193 ↓ 23.7 226,993 1

Hash Join (cost=362,341.57..1,388,833.29 rows=9,578 width=13) (actual time=1,411.711..24,071.193 rows=226,993 loops=1)

  • Hash Cond: (o."OnboardingActionId" = a."OnboardingActionId")
4. 22,232.494 23,395.300 ↓ 2.2 1,362,538 1

Bitmap Heap Scan on "Outcomes" o (cost=71,863.49..1,096,701.19 rows=630,101 width=17) (actual time=1,205.260..23,395.300 rows=1,362,538 loops=1)

  • Recheck Cond: (("CreationDate" >= '2019-08-01 00:00:00'::timestamp without time zone) AND ("CreationDate" <= '2019-08-19 23:59:59'::timestamp without time zone) AND (("ChannelType")::text = 'Email'::text) AND ("OnboardingTemplateId" = 20) AND ("BankId" = 1))
  • Rows Removed by Index Recheck: 207
  • Heap Blocks: exact=119804 lossy=107357
5. 1,162.806 1,162.806 ↓ 2.2 1,362,538 1

Bitmap Index Scan on idx_outcomes_covering (cost=0.00..71,705.96 rows=630,101 width=0) (actual time=1,162.806..1,162.806 rows=1,362,538 loops=1)

  • Index Cond: (("CreationDate" >= '2019-08-01 00:00:00'::timestamp without time zone) AND ("CreationDate" <= '2019-08-19 23:59:59'::timestamp without time zone) AND (("ChannelType")::text = 'Email'::text) AND ("OnboardingTemplateId" = 20) AND ("BankId" = 1))
6. 33.459 205.770 ↓ 1.0 115,207 1

Hash (cost=289,083.29..289,083.29 rows=111,583 width=4) (actual time=205.770..205.770 rows=115,207 loops=1)

  • Buckets: 131072 Batches: 1 Memory Usage: 5075kB
7. 148.506 172.311 ↓ 1.0 115,207 1

Bitmap Heap Scan on "OnboardingActions" a (cost=2,113.20..289,083.29 rows=111,583 width=4) (actual time=25.392..172.311 rows=115,207 loops=1)

  • Recheck Cond: ("CampaignId" = 137)
  • Heap Blocks: exact=11011
8. 23.805 23.805 ↓ 1.0 115,207 1

Bitmap Index Scan on ix_onboardingactions_campaignid (cost=0.00..2,085.30 rows=111,583 width=0) (actual time=23.805..23.805 rows=115,207 loops=1)

  • Index Cond: ("CampaignId" = 137)
Planning time : 1.007 ms