explain.depesz.com

PostgreSQL's explain analyze made readable

Result: eT1x

Settings
# exclusive inclusive rows x rows loops node
1. 7.879 84.571 ↓ 69.4 3,400 1

Sort (cost=6,965.21..6,965.33 rows=49 width=1,338) (actual time=84.398..84.571 rows=3,400 loops=1)

  • Sort Key: cr.combination_id, sr.slider_id
  • Sort Method: quicksort Memory: 1000kB
  • Buffers: shared hit=16169 read=18
2. 4.712 76.692 ↓ 69.4 3,400 1

Nested Loop Left Join (cost=35.87..6,963.83 rows=49 width=1,338) (actual time=44.623..76.692 rows=3,400 loops=1)

  • Join Filter: ((p.period_id = sr.period_id) AND ((sl.id)::numeric = cs.slider_id) AND ((sl.file_id)::numeric = cs.file_id))
  • Buffers: shared hit=16166 read=18
3. 1.275 68.580 ↓ 69.4 3,400 1

Nested Loop Left Join (cost=35.87..5,593.93 rows=49 width=1,250) (actual time=40.668..68.580 rows=3,400 loops=1)

  • Join Filter: ((dch.file_id = di.file_id) AND (dch.combination_id = (cr.combination_id)::numeric))
  • Buffers: shared hit=15830 read=18
4. 3.045 26.505 ↓ 69.4 3,400 1

Nested Loop Left Join (cost=35.87..667.55 rows=49 width=1,234) (actual time=0.405..26.505 rows=3,400 loops=1)

  • Buffers: shared hit=13619 read=18
5. 2.244 3.060 ↓ 69.4 3,400 1

Hash Right Join (cost=35.44..253.13 rows=49 width=1,216) (actual time=0.343..3.060 rows=3,400 loops=1)

  • Hash Cond: ((sr.analysis_id = a.id) AND (sr.combination_id = cr.combination_id))
  • Buffers: shared hit=30 read=7
6. 0.527 0.527 ↑ 1.0 680 1

Index Scan using idx_slider_result_a_id on slider_result sr (cost=0.42..200.32 rows=692 width=31) (actual time=0.043..0.527 rows=680 loops=1)

  • Index Cond: (analysis_id = 1349)
  • Buffers: shared hit=15 read=6
7. 0.020 0.289 ↓ 2.5 20 1

Hash (cost=34.90..34.90 rows=8 width=1,189) (actual time=0.289..0.289 rows=20 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 12kB
  • Buffers: shared hit=15 read=1
8. 0.022 0.269 ↓ 2.5 20 1

Nested Loop Left Join (cost=15.04..34.90 rows=8 width=1,189) (actual time=0.251..0.269 rows=20 loops=1)

  • Join Filter: (a.id = cr.analysis_id)
  • Buffers: shared hit=15 read=1
9. 0.055 0.168 ↑ 1.0 1 1

Hash Right Join (cost=14.76..18.22 rows=1 width=642) (actual time=0.159..0.168 rows=1 loops=1)

  • Hash Cond: ((di.id)::numeric = d.label_id)
  • Buffers: shared hit=13
10. 0.012 0.012 ↑ 1.0 97 1

Seq Scan on dictionary_import di (cost=0.00..2.97 rows=97 width=23) (actual time=0.007..0.012 rows=97 loops=1)

  • Buffers: shared hit=2
11. 0.009 0.101 ↑ 1.0 1 1

Hash (cost=14.74..14.74 rows=1 width=623) (actual time=0.101..0.101 rows=1 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
  • Buffers: shared hit=8
12. 0.028 0.092 ↑ 1.0 1 1

Hash Right Join (cost=8.30..14.74 rows=1 width=623) (actual time=0.087..0.092 rows=1 loops=1)

  • Hash Cond: (d.id = a.dataset_id)
  • Buffers: shared hit=8
13. 0.035 0.035 ↓ 1.0 109 1

Seq Scan on dictionary_dataset d (cost=0.00..6.04 rows=104 width=525) (actual time=0.010..0.035 rows=109 loops=1)

  • Buffers: shared hit=5
14. 0.006 0.029 ↑ 1.0 1 1

Hash (cost=8.29..8.29 rows=1 width=102) (actual time=0.029..0.029 rows=1 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
  • Buffers: shared hit=3
15. 0.023 0.023 ↑ 1.0 1 1

Index Scan using idx_analysis_id on analysis a (cost=0.28..8.29 rows=1 width=102) (actual time=0.023..0.023 rows=1 loops=1)

  • Index Cond: (id = 1349)
  • Buffers: shared hit=3
16. 0.079 0.079 ↓ 2.5 20 1

Index Scan using idx_comb_result_a_id on combination_result cr (cost=0.29..16.58 rows=8 width=551) (actual time=0.077..0.079 rows=20 loops=1)

  • Index Cond: (analysis_id = 1349)
  • Buffers: shared hit=2 read=1
17. 20.400 20.400 ↑ 1.0 1 3,400

Index Scan using pt_t2 on dictionary_combination_slider cs (cost=0.42..8.45 rows=1 width=24) (actual time=0.005..0.006 rows=1 loops=3,400)

  • Index Cond: ((combination_id = (cr.combination_id)::numeric) AND (slider_id = (sr.slider_id)::numeric) AND (di.file_id = file_id))
  • Buffers: shared hit=13589 read=11
18. 0.545 40.800 ↓ 0.0 0 3,400

Materialize (cost=0.00..4,925.40 rows=1 width=26) (actual time=0.012..0.012 rows=0 loops=3,400)

  • Buffers: shared hit=2211
19. 40.255 40.255 ↓ 0.0 0 1

Seq Scan on dictionary_combination_headers dch (cost=0.00..4,925.40 rows=1 width=26) (actual time=40.255..40.255 rows=0 loops=1)

  • Filter: (language_id = 1)
  • Rows Removed by Filter: 217152
  • Buffers: shared hit=2211
20. 0.000 3.400 ↓ 0.0 0 3,400

Materialize (cost=0.00..1,368.31 rows=1 width=110) (actual time=0.001..0.001 rows=0 loops=3,400)

  • Buffers: shared hit=336
21. 0.001 3.889 ↓ 0.0 0 1

Nested Loop (cost=0.00..1,368.31 rows=1 width=110) (actual time=3.889..3.889 rows=0 loops=1)

  • Join Filter: ((sl.file_id = p.file_id) AND (sl.granulation_type_id = p.type_id))
  • Buffers: shared hit=336
22. 0.002 3.888 ↓ 0.0 0 1

Nested Loop (cost=0.00..572.20 rows=1 width=115) (actual time=3.888..3.888 rows=0 loops=1)

  • Join Filter: ((sl.file_id)::numeric = ff.file_id)
  • Buffers: shared hit=336
23. 3.886 3.886 ↓ 0.0 0 1

Seq Scan on dictionary_slider sl (cost=0.00..568.98 rows=1 width=115) (actual time=3.886..3.886 rows=0 loops=1)

  • Filter: (language_id = 1)
  • Rows Removed by Filter: 18619
  • Buffers: shared hit=336
24. 0.000 0.000 ↓ 0.0 0

Seq Scan on dictionary_import ff (cost=0.00..3.21 rows=1 width=5) (never executed)

  • Filter: (id = 123)
25. 0.000 0.000 ↓ 0.0 0

Seq Scan on dictionary_period p (cost=0.00..796.09 rows=1 width=17) (never executed)