explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Yj5C

Settings
# exclusive inclusive rows x rows loops node
1. 31.351 4,063.711 ↑ 2.0 4 1

GroupAggregate (cost=1,413,606.25..1,413,673.74 rows=8 width=17) (actual time=4,032.571..4,063.711 rows=4 loops=1)

  • Group Key: o."OutcomeType
2. 166.427 4,032.360 ↓ 25.3 226,993 1

Sort (cost=1,413,606.25..1,413,628.72 rows=8,988 width=9) (actual time=3,995.417..4,032.360 rows=226,993 loops=1)

  • Sort Key: o."OutcomeType
  • Sort Method: external merge Disk: 4448kB
3. 396.985 3,865.933 ↓ 25.3 226,993 1

Hash Join (cost=414,127.42..1,413,016.02 rows=8,988 width=9) (actual time=1,138.466..3,865.933 rows=226,993 loops=1)

  • Hash Cond: (o."OnboardingActionId" = a."OnboardingActionId")
4. 2,382.373 3,319.837 ↓ 2.3 1,362,538 1

Bitmap Heap Scan on "Outcomes" o (cost=123,649.34..1,120,985.72 rows=591,320 width=13) (actual time=988.657..3,319.837 rows=1,362,538 loops=1)

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

Bitmap Index Scan on ix_outcomes_outbound_communication_status (cost=0.00..123,501.51 rows=591,320 width=0) (actual time=937.464..937.464 rows=1,362,538 loops=1)

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

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

  • Buckets: 131072 Batches: 1 Memory Usage: 5075kB
7. 113.738 123.581 ↓ 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=11.664..123.581 rows=115,207 loops=1)

  • Recheck Cond: ("CampaignId" = 137)
  • Heap Blocks: exact=11011
8. 9.843 9.843 ↓ 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=9.843..9.843 rows=115,207 loops=1)

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