explain.depesz.com

PostgreSQL's explain analyze made readable

Result: nb7m

Settings
# exclusive inclusive rows x rows loops node
1. 39.064 3,997.802 ↑ 2.0 4 1

GroupAggregate (cost=1,343,556.60..1,343,628.88 rows=8 width=17) (actual time=3,959.467..3,997.802 rows=4 loops=1)

  • Group Key: o."OutcomeType
2. 195.760 3,958.738 ↓ 23.6 226,993 1

Sort (cost=1,343,556.60..1,343,580.66 rows=9,627 width=9) (actual time=3,913.407..3,958.738 rows=226,993 loops=1)

  • Sort Key: o."OutcomeType
  • Sort Method: external merge Disk: 4448kB
3. 426.695 3,762.978 ↓ 23.6 226,993 1

Hash Join (cost=314,236.32..1,342,919.63 rows=9,627 width=9) (actual time=754.916..3,762.978 rows=226,993 loops=1)

  • Hash Cond: (o."OnboardingActionId" = a."OnboardingActionId")
4. 2,621.689 3,157.870 ↓ 2.2 1,362,538 1

Bitmap Heap Scan on "Outcomes" o (cost=23,758.24..1,050,779.05 rows=633,334 width=13) (actual time=575.901..3,157.870 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. 536.181 536.181 ↓ 2.2 1,362,538 1

Bitmap Index Scan on ix_outcomes_outbound_communication_status (cost=0.00..23,599.90 rows=633,334 width=0) (actual time=536.181..536.181 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. 30.501 178.413 ↓ 1.0 115,207 1

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

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

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

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