explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Rud5

Settings
# exclusive inclusive rows x rows loops node
1. 34.756 3,846.167 ↑ 2.0 4 1

GroupAggregate (cost=1,312,115.17..1,312,181.89 rows=8 width=17) (actual time=3,814.693..3,846.167 rows=4 loops=1)

  • Group Key: o."OutcomeType
2. 174.111 3,811.411 ↓ 25.5 226,993 1

Sort (cost=1,312,115.17..1,312,137.39 rows=8,885 width=13) (actual time=3,774.953..3,811.411 rows=226,993 loops=1)

  • Sort Key: o."OutcomeType
  • Sort Method: external merge Disk: 5776kB
3. 415.630 3,637.300 ↓ 25.5 226,993 1

Hash Join (cost=317,755.33..1,311,532.44 rows=8,885 width=13) (actual time=778.852..3,637.300 rows=226,993 loops=1)

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

Bitmap Heap Scan on "Outcomes" o (cost=27,277.25..1,019,520.04 rows=584,506 width=17) (actual time=608.377..3,053.042 rows=1,362,538 loops=1)

  • Recheck Cond: (("OnboardingTemplateId" = 20) AND ("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 ("BankId" = 1))
  • Rows Removed by Index Recheck: 207
  • Heap Blocks: exact=119804 lossy=107357
5. 568.203 568.203 ↓ 2.3 1,362,538 1

Bitmap Index Scan on idx_outcomes_covering (cost=0.00..27,131.13 rows=584,506 width=0) (actual time=568.203..568.203 rows=1,362,538 loops=1)

  • Index Cond: (("OnboardingTemplateId" = 20) AND ("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 ("BankId" = 1))
6. 33.108 168.628 ↓ 1.0 115,207 1

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

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

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

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