explain.depesz.com

PostgreSQL's explain analyze made readable

Result: XKl5 : Optimization for: plan #xqbp

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.003 1,891.816 ↑ 1.0 10 1

Limit (cost=238,689.760..238,689.860 rows=10 width=44) (actual time=1,891.786..1,891.816 rows=10 loops=1)

2. 0.020 1,891.813 ↑ 19.9 10 1

Unique (cost=238,689.760..238,691.750 rows=199 width=44) (actual time=1,891.786..1,891.813 rows=10 loops=1)

3. 293.205 1,891.793 ↑ 2.1 94 1

Sort (cost=238,689.760..238,690.250 rows=199 width=44) (actual time=1,891.784..1,891.793 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. 179.134 1,598.588 ↓ 1,263.4 251,412 1

Nested Loop (cost=6.090..238,682.160 rows=199 width=44) (actual time=5.326..1,598.588 rows=251,412 loops=1)

  • Join Filter: (kilo2.quebec_seven = quebec_sierra3.romeo_lima)
5. 244.155 832.424 ↓ 559.1 58,703 1

Nested Loop Left Join (cost=5.520..235,293.420 rows=105 width=55) (actual time=5.179..832.424 rows=58,703 loops=1)

  • Join Filter: ((uniform_delta0.juliet_victor = kilo5.juliet_victor) AND (kilo2.xray_india = kilo5.xray_india))
  • Rows Removed by Join Filter: 1761073
6. 7.717 529.566 ↓ 559.1 58,703 1

Nested Loop (cost=1.150..235,234.580 rows=105 width=52) (actual time=5.120..529.566 rows=58,703 loops=1)

7. 0.023 0.023 ↑ 1.0 3 1

Seq Scan on oscar_yankee foxtrot (cost=0.000..1.660 rows=3 width=29) (actual time=0.012..0.023 rows=3 loops=1)

  • Filter: (juliet_victor = 1095)
  • Rows Removed by Filter: 50
8. 37.726 521.826 ↓ 559.1 19,568 3

Nested Loop (cost=1.150..78,410.620 rows=35 width=44) (actual time=4.375..173.942 rows=19,568 loops=3)

9. 232.065 249.630 ↓ 164.5 15,631 3

Nested Loop (cost=0.580..76,220.740 rows=95 width=40) (actual time=4.352..83.210 rows=15,631 loops=3)

  • -> Index Scan using publications_family_id_idx on publications p2 (cost=0.57..762.19 rows=1 width=8) (actual time=0.006..0.007 rows=2
10. 17.565 17.565 ↓ 100.0 10,000 3

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

  • 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
11. 234.470 234.470 ↑ 1.0 1 46,894

Index Scan using alpha_romeo on tango three_november (cost=0.570..23.040 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
12. 58.644 58.703 ↓ 3.3 30 58,703

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

13. 0.039 0.059 ↓ 3.3 30 1

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

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

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

  • Index Cond: (juliet_victor = 1095)
15. 587.030 587.030 ↓ 1.3 4 58,703

Index Scan using three_hotel on five uniform_yankee (cost=0.570..32.220 rows=3 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
Planning time : 1.603 ms
Execution time : 1,894.622 ms