explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 8YrR

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 570.639 ↓ 0.0 0 1

Nested Loop (cost=122,225.57..122,302.72 rows=4 width=2,021) (actual time=570.639..570.639 rows=0 loops=1)

2. 0.002 0.049 ↑ 1.0 1 1

Nested Loop (cost=0.98..17.03 rows=1 width=37) (actual time=0.045..0.049 rows=1 loops=1)

3. 0.027 0.027 ↑ 1.0 1 1

Index Only Scan using arbeitsort_pkey on arbeitsort arbeitsort2_ (cost=0.42..8.44 rows=1 width=37) (actual time=0.026..0.027 rows=1 loops=1)

  • Index Cond: (id = 'e72307a5-e686-4535-8fa2-0dde5cb1b6fe'::text)
  • Heap Fetches: 1
4. 0.020 0.020 ↑ 1.0 1 1

Index Only Scan using id_index on objekt arbeitsort2_1_ (cost=0.56..8.57 rows=1 width=37) (actual time=0.018..0.020 rows=1 loops=1)

  • Index Cond: (id = 'e72307a5-e686-4535-8fa2-0dde5cb1b6fe'::text)
  • Heap Fetches: 1
5. 28.242 587.367 ↓ 0.0 0 1

Gather (cost=122,224.59..122,285.65 rows=4 width=2,058) (actual time=570.588..587.367 rows=0 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
6. 0.002 559.125 ↓ 0.0 0 3

Merge Join (cost=121,224.59..121,285.25 rows=2 width=2,058) (actual time=559.125..559.125 rows=0 loops=3)

  • Merge Cond: ((massnahme0_.id)::text = (arbeitsort1_.massnahme_id)::text)
7. 0.005 559.096 ↑ 8,003.0 1 3

Merge Left Join (cost=121,204.83..121,245.45 rows=8,003 width=2,058) (actual time=559.096..559.096 rows=1 loops=3)

  • Merge Cond: ((massnahme0_.id)::text = (massnahme0_2_.id)::text)
8. 12.412 559.024 ↑ 8,003.0 1 3

Sort (cost=121,201.18..121,221.19 rows=8,003 width=2,026) (actual time=559.024..559.024 rows=1 loops=3)

  • Sort Key: massnahme0_.id
  • Sort Method: quicksort Memory: 3728kB
9. 269.865 546.612 ↑ 1.2 6,403 3

Hash Join (cost=936.18..120,682.33 rows=8,003 width=2,026) (actual time=20.109..546.612 rows=6,403 loops=3)

  • Hash Cond: ((massnahme0_1_.id)::text = (massnahme0_.id)::text)
10. 257.080 257.080 ↑ 1.2 1,344,200 3

Parallel Seq Scan on objekt massnahme0_1_ (cost=0.00..115,335.50 rows=1,680,250 width=721) (actual time=0.028..257.080 rows=1,344,200 loops=3)

11. 11.372 19.667 ↑ 1.0 19,208 3

Hash (cost=696.08..696.08 rows=19,208 width=1,305) (actual time=19.667..19.667 rows=19,208 loops=3)

  • Buckets: 32768 Batches: 1 Memory Usage: 4260kB
12. 8.295 8.295 ↑ 1.0 19,208 3

Seq Scan on massnahme massnahme0_ (cost=0.00..696.08 rows=19,208 width=1,305) (actual time=0.019..8.295 rows=19,208 loops=3)

13. 0.041 0.067 ↑ 66.0 1 3

Sort (cost=3.65..3.82 rows=66 width=69) (actual time=0.067..0.067 rows=1 loops=3)

  • Sort Key: massnahme0_2_.id
  • Sort Method: quicksort Memory: 30kB
14. 0.026 0.026 ↑ 1.0 66 3

Seq Scan on bonitierung massnahme0_2_ (cost=0.00..1.66 rows=66 width=69) (actual time=0.021..0.026 rows=66 loops=3)

15. 0.002 0.027 ↓ 0.0 0 3

Sort (cost=19.76..19.77 rows=4 width=74) (actual time=0.027..0.027 rows=0 loops=3)

  • Sort Key: arbeitsort1_.massnahme_id
  • Sort Method: quicksort Memory: 25kB
16. 0.002 0.025 ↓ 0.0 0 3

Bitmap Heap Scan on massnahme2arbeitsort arbeitsort1_ (cost=4.45..19.72 rows=4 width=74) (actual time=0.024..0.025 rows=0 loops=3)

  • Recheck Cond: ((arbeitsort_id)::text = 'e72307a5-e686-4535-8fa2-0dde5cb1b6fe'::text)
17. 0.023 0.023 ↓ 0.0 0 3

Bitmap Index Scan on sub_index (cost=0.00..4.45 rows=4 width=0) (actual time=0.023..0.023 rows=0 loops=3)

  • Index Cond: ((arbeitsort_id)::text = 'e72307a5-e686-4535-8fa2-0dde5cb1b6fe'::text)
Planning time : 2.091 ms