explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 3VBz : Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: plan #gWgH; plan #lj5Ms; plan #B8eq; plan #Yty9; plan #Lheu; plan #27c; plan #qUXb; plan #6xFD; plan #YOFp; plan #tvR9; plan #vDLc; plan #4jS3; plan #a2yB; plan #elHgV; plan #6VaS; plan #o816; plan #hclw; plan #UZX; plan #XyN3; plan #WHzt; plan #sUl; plan #xWEE; plan #XZBd; plan #ShAp

Settings

Optimization path:

# exclusive inclusive rows x rows loops node
1. 0.029 38.294 ↑ 1.4 177 1

Limit (cost=29,200.78..29,333.91 rows=250 width=554) (actual time=35.365..38.294 rows=177 loops=1)

2. 2.976 38.265 ↑ 55.5 177 1

Result (cost=29,200.78..34,434.72 rows=9,829 width=554) (actual time=35.364..38.265 rows=177 loops=1)

3. 0.164 35.289 ↑ 55.5 177 1

Sort (cost=29,200.78..29,225.35 rows=9,829 width=557) (actual time=35.257..35.289 rows=177 loops=1)

  • Sort Key: lima_delta1.mike_seven
  • Sort Method: quicksort Memory: 195kB
4. 0.065 35.125 ↑ 55.5 177 1

Hash Left Join (cost=2,338.12..28,760.16 rows=9,829 width=557) (actual time=9.571..35.125 rows=177 loops=1)

  • Hash Cond: (echo_seven1.delta_kilo = alpha_seven1.quebec_seven)
5. 0.068 34.518 ↑ 55.5 177 1

Hash Left Join (cost=2,063.61..28,459.78 rows=9,829 width=1,134) (actual time=9.022..34.518 rows=177 loops=1)

  • Hash Cond: (echo_seven1.four_delta = kilo_foxtrot2.quebec_seven)
6. 0.168 33.965 ↑ 55.5 177 1

Nested Loop Left Join (cost=1,859.31..28,229.57 rows=9,829 width=1,073) (actual time=8.530..33.965 rows=177 loops=1)

7. 0.081 33.266 ↑ 55.0 177 1

Hash Left Join (cost=1,858.88..9,161.07 rows=9,727 width=1,049) (actual time=8.518..33.266 rows=177 loops=1)

  • Hash Cond: (lima_delta1.quebec_seven = zulu1.sierra_foxtrot)
8. 0.103 31.554 ↑ 55.0 177 1

Hash Left Join (cost=1,366.94..8,620.46 rows=9,727 width=382) (actual time=6.876..31.554 rows=177 loops=1)

  • Hash Cond: ((kilo_foxtrot1.quebec_seven = alpha_oscar1.uniform_bravo) AND (lima_delta1.juliet_hotel = alpha_oscar1.foxtrot_charlie))
9. 0.092 29.494 ↑ 55.0 177 1

Hash Left Join (cost=1,031.57..8,234.01 rows=9,727 width=354) (actual time=4.903..29.494 rows=177 loops=1)

  • Hash Cond: (lima_delta1.lima_echo = kilo_foxtrot1.quebec_seven)
10. 0.092 27.129 ↑ 55.0 177 1

Hash Left Join (cost=424.00..7,600.89 rows=9,727 width=295) (actual time=2.614..27.129 rows=177 loops=1)

  • Hash Cond: (lima_delta1.two = papa_kilo1.quebec_seven)
11. 0.061 24.715 ↑ 55.0 177 1

Hash Left Join (cost=80.87..7,232.21 rows=9,727 width=284) (actual time=0.280..24.715 rows=177 loops=1)

  • Hash Cond: (lima_delta1.four_sierra = romeo_three1.quebec_seven)
12. 0.062 24.645 ↑ 55.0 177 1

Hash Left Join (cost=79.58..7,197.07 rows=9,727 width=275) (actual time=0.269..24.645 rows=177 loops=1)

  • Hash Cond: (lima_delta1.juliet_hotel = uniform_delta1.quebec_seven)
13. 1.780 24.360 ↑ 55.0 177 1

Hash Left Join (cost=1.65..7,093.32 rows=9,727 width=179) (actual time=0.043..24.360 rows=177 loops=1)

  • Hash Cond: (lima_delta1.juliet_hotel = india1.quebec_hotel)
  • Filter: ((lima_delta1.juliet_hotel = 81) OR (india1.yankee_zulu = 81))
  • Rows Removed by Filter: 17,604
14. 22.570 22.570 ↑ 1.7 17,781 1

Index Scan using papa_yankee on foxtrot_romeo quebec_sierra (cost=0.56..6,975.07 rows=29,909 width=179) (actual time=0.017..22.570 rows=17,781 loops=1)

  • Index Cond: ((lima_romeo)::text = 'quebec_quebec'::text)
  • Filter: ((NOT papa_bravo) OR (papa_bravo five_romeo NULL))
  • Rows Removed by Filter: 9,402
15. 0.003 0.010 ↑ 1.0 3 1

Hash (cost=1.05..1.05 rows=3 width=16) (actual time=0.009..0.010 rows=3 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
16. 0.007 0.007 ↑ 1.0 3 1

Seq Scan on hotel_three romeo_foxtrot (cost=0.00..1.05 rows=3 width=16) (actual time=0.006..0.007 rows=3 loops=1)

  • Filter: ((juliet_charlie)::text = 'kilo_papa'::text)
  • Rows Removed by Filter: 1
17. 0.059 0.223 ↑ 1.0 397 1

Hash (cost=72.97..72.97 rows=397 width=96) (actual time=0.222..0.223 rows=397 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 58kB
18. 0.164 0.164 ↑ 1.0 397 1

Seq Scan on echo_zulu mike_quebec (cost=0.00..72.97 rows=397 width=96) (actual time=0.004..0.164 rows=397 loops=1)

19. 0.003 0.009 ↑ 1.0 13 1

Hash (cost=1.13..1.13 rows=13 width=25) (actual time=0.009..0.009 rows=13 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
20. 0.006 0.006 ↑ 1.0 13 1

Seq Scan on tango four_uniform (cost=0.00..1.13 rows=13 width=25) (actual time=0.004..0.006 rows=13 loops=1)

21. 0.983 2.322 ↓ 1.0 8,167 1

Hash (cost=241.39..241.39 rows=8,139 width=27) (actual time=2.321..2.322 rows=8,167 loops=1)

  • Buckets: 8,192 Batches: 1 Memory Usage: 569kB
22. 1.339 1.339 ↓ 1.0 8,167 1

Seq Scan on golf uniform_romeo (cost=0.00..241.39 rows=8,139 width=27) (actual time=0.003..1.339 rows=8,167 loops=1)

23. 0.717 2.273 ↑ 1.0 5,181 1

Hash (cost=542.81..542.81 rows=5,181 width=67) (actual time=2.273..2.273 rows=5,181 loops=1)

  • Buckets: 8,192 Batches: 1 Memory Usage: 569kB
24. 1.556 1.556 ↑ 1.0 5,181 1

Seq Scan on sierra_three whiskey_six (cost=0.00..542.81 rows=5,181 width=67) (actual time=0.005..1.556 rows=5,181 loops=1)

25. 0.762 1.957 ↓ 1.0 5,539 1

Hash (cost=252.95..252.95 rows=5,495 width=52) (actual time=1.957..1.957 rows=5,539 loops=1)

  • Buckets: 8,192 Batches: 1 Memory Usage: 501kB
26. 1.195 1.195 ↓ 1.0 5,539 1

Seq Scan on delta_alpha five_xray (cost=0.00..252.95 rows=5,495 width=52) (actual time=0.007..1.195 rows=5,539 loops=1)

27. 0.646 1.631 ↑ 1.0 2,541 1

Hash (cost=459.75..459.75 rows=2,575 width=675) (actual time=1.631..1.631 rows=2,541 loops=1)

  • Buckets: 4,096 Batches: 1 Memory Usage: 1,354kB
28. 0.985 0.985 ↑ 1.0 2,541 1

Seq Scan on juliet_november romeo_kilo (cost=0.00..459.75 rows=2,575 width=675) (actual time=0.005..0.985 rows=2,541 loops=1)

29. 0.531 0.531 ↑ 1.0 1 177

Index Scan using charlie on uniform_kilo victor (cost=0.43..1.95 rows=1 width=32) (actual time=0.003..0.003 rows=1 loops=177)

  • Index Cond: (sierra_foxtrot = lima_delta1.quebec_seven)
30. 0.139 0.485 ↑ 1.0 902 1

Hash (cost=193.02..193.02 rows=902 width=69) (actual time=0.485..0.485 rows=902 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 98kB
31. 0.346 0.346 ↑ 1.0 902 1

Seq Scan on oscar yankee_xray (cost=0.00..193.02 rows=902 width=69) (actual time=0.006..0.346 rows=902 loops=1)

32. 0.165 0.542 ↓ 1.0 1,193 1

Hash (cost=259.78..259.78 rows=1,178 width=41) (actual time=0.542..0.542 rows=1,193 loops=1)

  • Buckets: 2,048 Batches: 1 Memory Usage: 107kB
33. 0.377 0.377 ↓ 1.0 1,193 1

Seq Scan on whiskey_tango hotel_golf (cost=0.00..259.78 rows=1,178 width=41) (actual time=0.005..0.377 rows=1,193 loops=1)

Planning time : 10.452 ms
Execution time : 38.442 ms