explain.depesz.com

PostgreSQL's explain analyze made readable

Result: AAd5

Settings
# exclusive inclusive rows x rows loops node
1. 0.032 12,095.317 ↓ 4.0 4 1

GroupAggregate (cost=3,844.66..3,844.68 rows=1 width=24) (actual time=12,095.300..12,095.317 rows=4 loops=1)

  • Group Key: sourcing_strategies.id, applications.source_id
  • Buffers: shared hit=9268451 read=850796 written=3066
2. 0.039 12,095.285 ↓ 56.0 56 1

Sort (cost=3,844.66..3,844.66 rows=1 width=24) (actual time=12,095.282..12,095.285 rows=56 loops=1)

  • Sort Key: sourcing_strategies.id, applications.source_id
  • Sort Method: quicksort Memory: 29kB
  • Buffers: shared hit=9268451 read=850796 written=3066
3. 0.134 12,095.246 ↓ 56.0 56 1

Nested Loop Left Join (cost=27.42..3,844.65 rows=1 width=24) (actual time=25.390..12,095.246 rows=56 loops=1)

  • Filter: ((prospective_hiring_plans.hiring_plan_id = '4460836002'::bigint) OR (prospective_hiring_plans.hiring_plan_id IS NULL))
  • Rows Removed by Filter: 33
  • Buffers: shared hit=9268451 read=850796 written=3066
4. 0.114 12,080.605 ↓ 89.0 89 1

Nested Loop (cost=26.99..3,842.19 rows=1 width=24) (actual time=1.262..12,080.605 rows=89 loops=1)

  • Buffers: shared hit=9268217 read=850730 written=3066
5. 0.051 12,080.402 ↓ 89.0 89 1

Nested Loop (cost=26.86..3,842.04 rows=1 width=24) (actual time=1.257..12,080.402 rows=89 loops=1)

  • Buffers: shared hit=9268127 read=850730 written=3066
6. 0.028 0.927 ↓ 8.0 8 1

Nested Loop (cost=26.29..28.32 rows=1 width=24) (actual time=0.812..0.927 rows=8 loops=1)

  • Buffers: shared hit=73 read=18
7. 0.022 0.827 ↓ 8.0 8 1

HashAggregate (cost=26.00..26.01 rows=1 width=8) (actual time=0.809..0.827 rows=8 loops=1)

  • Group Key: sources_1.id
  • Buffers: shared hit=53 read=14
8. 0.013 0.805 ↓ 8.0 8 1

Sort (cost=25.98..25.99 rows=1 width=40) (actual time=0.804..0.805 rows=8 loops=1)

  • Sort Key: (lower((sources_1.public_name)::text))
  • Sort Method: quicksort Memory: 25kB
  • Buffers: shared hit=53 read=14
9. 0.012 0.792 ↓ 8.0 8 1

Nested Loop Left Join (cost=0.71..25.97 rows=1 width=40) (actual time=0.029..0.792 rows=8 loops=1)

  • Filter: ((source_overrides.hide IS NULL) OR (source_overrides.hide IS FALSE))
  • Rows Removed by Filter: 2
  • Buffers: shared hit=53 read=14
10. 0.010 0.700 ↓ 10.0 10 1

Nested Loop (cost=0.29..23.52 rows=1 width=23) (actual time=0.012..0.700 rows=10 loops=1)

  • Join Filter: (sources_1.sourcing_strategy_id = sourcing_strategies_1.id)
  • Rows Removed by Join Filter: 27
  • Buffers: shared hit=34 read=1
11. 0.680 0.680 ↓ 10.0 10 1

Index Scan using sources_pkey on sources sources_1 (cost=0.29..22.34 rows=1 width=31) (actual time=0.008..0.680 rows=10 loops=1)

  • Index Cond: (id = ANY ('{4000011002,4000017002,4000031002,4000056002,4000096002,4000098002,4000100002,4000110002,4000151002,4000173002}'::bigint[]))
  • Filter: (display AND ((organization_id IS NULL) OR (organization_id = '4002074002'::bigint)))
  • Buffers: shared hit=24 read=1
12. 0.010 0.010 ↑ 2.0 4 10

Seq Scan on sourcing_strategies sourcing_strategies_1 (cost=0.00..1.08 rows=8 width=8) (actual time=0.001..0.001 rows=4 loops=10)

  • Filter: (display AND reportable)
  • Buffers: shared hit=10
13. 0.080 0.080 ↓ 0.0 0 10

Index Scan using index_source_overrides_on_source_id_and_organization_id on source_overrides (cost=0.42..2.44 rows=1 width=9) (actual time=0.008..0.008 rows=0 loops=10)

  • Index Cond: ((sources_1.id = source_id) AND (organization_id = '4002074002'::bigint))
  • Buffers: shared hit=19 read=13
14. 0.072 0.072 ↑ 1.0 1 8

Index Scan using sources_pkey on sources (cost=0.29..2.31 rows=1 width=16) (actual time=0.009..0.009 rows=1 loops=8)

  • Index Cond: (id = sources_1.id)
  • Buffers: shared hit=20 read=4
15. 12,079.424 12,079.424 ↓ 11.0 11 8

Index Scan using index_applications_on_source_id on applications (cost=0.56..3,813.71 rows=1 width=16) (actual time=233.112..1,509.928 rows=11 loops=8)

  • Index Cond: (source_id = sources.id)
  • Filter: (prospect AND (created_at >= '2020-01-27 00:00:00'::timestamp without time zone) AND (created_at <= '2020-02-02 23:59:59.999999'::timestamp without time zone) AND (organization_id = '4002074002'::bigint) AND (stage_status_id = '4000005002'::bigint))
  • Rows Removed by Filter: 1388672
  • Buffers: shared hit=9268054 read=850712 written=3066
16. 0.089 0.089 ↑ 1.0 1 89

Index Only Scan using sourcing_strategies_pkey on sourcing_strategies (cost=0.13..0.15 rows=1 width=8) (actual time=0.001..0.001 rows=1 loops=89)

  • Index Cond: (id = sources.sourcing_strategy_id)
  • Heap Fetches: 0
  • Buffers: shared hit=90
17. 14.507 14.507 ↓ 0.0 0 89

Index Scan using index_prospective_hiring_plans_on_application_id on prospective_hiring_plans (cost=0.43..2.45 rows=1 width=16) (actual time=0.163..0.163 rows=0 loops=89)

  • Index Cond: (application_id = applications.id)
  • Buffers: shared hit=234 read=66
Planning time : 4.126 ms
Execution time : 12,095.415 ms