explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 4dN : Optimization for: plan #xqbp

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.006 2,888.056 ↑ 1.0 10 1

Limit (cost=227,312.890..227,312.990 rows=10 width=44) (actual time=2,888.024..2,888.056 rows=10 loops=1)

2. 0.013 2,888.050 ↑ 22.5 10 1

Unique (cost=227,312.890..227,315.140 rows=225 width=44) (actual time=2,888.023..2,888.050 rows=10 loops=1)

3. 300.293 2,888.037 ↑ 2.4 94 1

Sort (cost=227,312.890..227,313.460 rows=225 width=44) (actual time=2,888.022..2,888.037 rows=94 loops=1)

  • Sort Key: (((juliet_india1.six_mike ->> 'hotel'::text))::double precision) DESC, (lima_sierra(kilo5.lima_tango, 'uniform_romeo'::character varying)), kilo2.xray_india
  • Sort Method: external sort Disk: 10328kB
4. 1,125.703 2,587.744 ↓ 1,117.4 251,412 1

Nested Loop Left Join (cost=6.090..227,304.100 rows=225 width=44) (actual time=5.297..2,587.744 rows=251,412 loops=1)

  • Join Filter: ((uniform_delta0.juliet_victor = kilo5.juliet_victor) AND (kilo2.xray_india = kilo5.xray_india))
  • Rows Removed by Join Filter: 7542299
5. 28.261 1,210.629 ↓ 1,117.4 251,412 1

Nested Loop (cost=1.720..227,224.670 rows=225 width=44) (actual time=5.225..1,210.629 rows=251,412 loops=1)

6. 0.029 0.029 ↑ 1.0 3 1

Seq Scan on oscar_yankee foxtrot (cost=0.000..1.680 rows=3 width=29) (actual time=0.008..0.029 rows=3 loops=1)

  • Filter: (juliet_victor = 1095)
  • Rows Removed by Filter: 51
7. 64.447 1,182.339 ↓ 1,132.5 83,804 3

Nested Loop (cost=1.720..75,740.260 rows=74 width=36) (actual time=4.557..394.113 rows=83,804 loops=3)

  • Join Filter: (kilo2.quebec_seven = quebec_sierra3.romeo_lima)
8. 40.561 530.862 ↓ 593.0 19,568 3

Nested Loop (cost=1.150..74,078.300 rows=33 width=44) (actual time=4.358..176.954 rows=19,568 loops=3)

9. 27.984 255.831 ↓ 175.6 15,631 3

Nested Loop (cost=0.580..71,827.740 rows=89 width=40) (actual time=4.334..85.277 rows=15,631 loops=3)

10. 17.847 17.847 ↓ 100.0 10,000 3

Function Scan on charlie yankee_charlie (cost=0.000..1.000 rows=100 width=32) (actual time=4.092..5.949 rows=10,000 loops=3)

11. 210.000 210.000 ↓ 2.0 2 30,000

Index Scan using romeo_sierra on delta yankee_xray (cost=0.570..718.260 rows=1 width=8) (actual time=0.006..0.007 rows=2 loops=30,000)

  • Index Cond: (xray_india = ((juliet_india1.six_mike ->> 'yankee_foxtrot'::text))::integer)
  • Filter: ((lima_sierra(papa_three_two, yankee_kilo) <= 'lima_xray'::date) AND (lima_sierra(papa_three_two, yankee_kilo) >= 'xray_three'::date))
  • Rows Removed by Filter: 2
12. 234.470 234.470 ↑ 1.0 1 46,894

Index Scan using alpha_romeo on tango three_november (cost=0.570..25.280 rows=1 width=4) (actual time=0.005..0.005 rows=1 loops=46,894)

  • Index Cond: (romeo_lima = kilo2.quebec_seven)
  • Filter: (oscar_india ~~ 'six_kilo'::text)
  • Rows Removed by Filter: 1
13. 587.030 587.030 ↑ 1.2 4 58,703

Index Scan using three_hotel on five uniform_yankee (cost=0.570..50.300 rows=5 width=4) (actual time=0.006..0.010 rows=4 loops=58,703)

  • Index Cond: (romeo_lima = alpha_quebec4.romeo_lima)
  • Filter: ((lima_romeo ~~ 'sierra'::text) OR (lima_romeo ~~ 'romeo_two'::text))
  • Rows Removed by Filter: 6
14. 251.359 251.412 ↓ 3.3 30 251,412

Materialize (cost=4.370..42.330 rows=9 width=23) (actual time=0.000..0.001 rows=30 loops=251,412)

15. 0.032 0.053 ↓ 3.3 30 1

Bitmap Heap Scan on victor india (cost=4.370..42.280 rows=9 width=23) (actual time=0.032..0.053 rows=30 loops=1)

  • Recheck Cond: (juliet_victor = 1095)
  • Filter: ((lima_tango)::text = ANY ('papa_three_six'::text[]))
  • Heap Blocks: exact=18
16. 0.021 0.021 ↓ 2.7 30 1

Bitmap Index Scan on golf (cost=0.000..4.370 rows=11 width=0) (actual time=0.021..0.021 rows=30 loops=1)

  • Index Cond: (juliet_victor = 1095)
Planning time : 1.980 ms
Execution time : 2,890.845 ms