explain.depesz.com

PostgreSQL's explain analyze made readable

Result: hclw : 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

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.016 51.188 ↑ 2.1 121 1

Limit (cost=17,347.17..17,477.79 rows=250 width=554) (actual time=48.123..51.188 rows=121 loops=1)

2. 3.143 51.172 ↑ 27.1 121 1

Result (cost=17,347.17..19,058.88 rows=3,276 width=554) (actual time=48.123..51.172 rows=121 loops=1)

3. 0.169 48.029 ↑ 27.1 121 1

Sort (cost=17,347.17..17,355.36 rows=3,276 width=557) (actual time=47.995..48.029 rows=121 loops=1)

  • Sort Key: lima_delta1.mike_seven
  • Sort Method: quicksort Memory: 139kB
4. 0.080 47.860 ↑ 27.1 121 1

Hash Left Join (cost=2,339.12..17,200.31 rows=3,276 width=557) (actual time=12.002..47.860 rows=121 loops=1)

  • Hash Cond: (echo_seven1.delta_kilo = alpha_seven1.quebec_seven)
5. 0.069 46.914 ↑ 27.1 121 1

Hash Left Join (cost=2,064.61..16,917.18 rows=3,276 width=1,134) (actual time=11.126..46.914 rows=121 loops=1)

  • Hash Cond: (echo_seven1.four_delta = kilo_foxtrot2.quebec_seven)
6. 0.136 46.146 ↑ 27.1 121 1

Nested Loop Left Join (cost=1,859.31..16,703.24 rows=3,276 width=1,073) (actual time=10.419..46.146 rows=121 loops=1)

7. 0.066 45.526 ↑ 26.8 121 1

Hash Left Join (cost=1,858.88..9,092.15 rows=3,242 width=1,049) (actual time=10.405..45.526 rows=121 loops=1)

  • Hash Cond: (lima_delta1.quebec_seven = zulu1.sierra_foxtrot)
8. 0.094 43.547 ↑ 26.8 121 1

Hash Left Join (cost=1,366.94..8,583.99 rows=3,242 width=382) (actual time=8.481..43.547 rows=121 loops=1)

  • Hash Cond: ((kilo_foxtrot1.quebec_seven = alpha_oscar1.uniform_bravo) AND (lima_delta1.juliet_hotel = alpha_oscar1.foxtrot_charlie))
9. 0.086 41.409 ↑ 26.8 121 1

Hash Left Join (cost=1,031.57..8,231.60 rows=3,242 width=354) (actual time=6.420..41.409 rows=121 loops=1)

  • Hash Cond: (lima_delta1.lima_echo = kilo_foxtrot1.quebec_seven)
10. 0.081 37.962 ↑ 26.8 121 1

Hash Left Join (cost=424.00..7,615.50 rows=3,242 width=295) (actual time=3.043..37.962 rows=121 loops=1)

  • Hash Cond: (lima_delta1.two = papa_kilo1.quebec_seven)
11. 0.062 35.153 ↑ 26.8 121 1

Hash Left Join (cost=80.87..7,263.87 rows=3,242 width=284) (actual time=0.304..35.153 rows=121 loops=1)

  • Hash Cond: (lima_delta1.four_sierra = romeo_three1.quebec_seven)
12. 0.059 35.082 ↑ 26.8 121 1

Hash Left Join (cost=79.58..7,251.29 rows=3,242 width=275) (actual time=0.291..35.082 rows=121 loops=1)

  • Hash Cond: (lima_delta1.juliet_hotel = uniform_delta1.quebec_seven)
13. 0.737 34.770 ↑ 26.8 121 1

Hash Left Join (cost=1.65..7,164.76 rows=3,242 width=179) (actual time=0.036..34.770 rows=121 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: 3,735
14. 34.023 34.023 ↑ 2.6 3,856 1

Index Scan using papa_yankee on foxtrot_romeo quebec_sierra (cost=0.56..7,124.62 rows=9,970 width=179) (actual time=0.023..34.023 rows=3,856 loops=1)

  • Index Cond: ((lima_romeo)::text = 'quebec_quebec'::text)
  • Filter: (((NOT papa_bravo) OR (papa_bravo five_romeo NULL)) AND ((mike_seven)::date >= 'four_india'::date))
  • Rows Removed by Filter: 23,335
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.069 0.253 ↑ 1.0 397 1

Hash (cost=72.97..72.97 rows=397 width=96) (actual time=0.252..0.253 rows=397 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 58kB
18. 0.184 0.184 ↑ 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.184 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. 1.168 2.728 ↓ 1.0 8,167 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 569kB
22. 1.560 1.560 ↓ 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.560 rows=8,167 loops=1)

23. 1.186 3.361 ↑ 1.0 5,181 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 569kB
24. 2.175 2.175 ↑ 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..2.175 rows=5,181 loops=1)

25. 0.791 2.044 ↓ 1.0 5,539 1

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

  • Buckets: 8,192 Batches: 1 Memory Usage: 501kB
26. 1.253 1.253 ↓ 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.253 rows=5,539 loops=1)

27. 0.829 1.913 ↑ 1.0 2,541 1

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

  • Buckets: 4,096 Batches: 1 Memory Usage: 1,354kB
28. 1.084 1.084 ↑ 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..1.084 rows=2,541 loops=1)

29. 0.484 0.484 ↑ 1.0 1 121

Index Scan using charlie on uniform_kilo victor (cost=0.43..2.34 rows=1 width=32) (actual time=0.004..0.004 rows=1 loops=121)

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

Hash (cost=194.02..194.02 rows=902 width=69) (actual time=0.698..0.699 rows=902 loops=1)

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

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

32. 0.305 0.866 ↓ 1.0 1,193 1

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

  • Buckets: 2,048 Batches: 1 Memory Usage: 107kB
33. 0.561 0.561 ↓ 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.007..0.561 rows=1,193 loops=1)

Planning time : 14.578 ms
Execution time : 51.363 ms