explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ON5C : Optimization for: Optimization for: plan #vQBZ; plan #lkBq

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.003 47.601 ↑ 32.1 7 1

Limit (cost=10,019.58..10,137.14 rows=225 width=301) (actual time=47.553..47.601 rows=7 loops=1)

2. 0.091 47.598 ↑ 32.1 7 1

Result (cost=10,019.58..10,137.14 rows=225 width=301) (actual time=47.552..47.598 rows=7 loops=1)

3. 0.013 47.507 ↑ 32.1 7 1

Sort (cost=10,019.58..10,020.14 rows=225 width=304) (actual time=47.503..47.507 rows=7 loops=1)

  • Sort Key: lima_delta1.foxtrot_bravo DESC
  • Sort Method: quicksort Memory: 28kB
4. 0.004 47.494 ↑ 32.1 7 1

Nested Loop Left Join (cost=2.63..10,010.79 rows=225 width=304) (actual time=0.409..47.494 rows=7 loops=1)

5. 0.003 47.473 ↑ 43.0 1 1

Nested Loop (cost=2.34..9,989.13 rows=43 width=248) (actual time=0.401..47.473 rows=1 loops=1)

6. 0.003 47.464 ↑ 45.0 1 1

Nested Loop (cost=2.06..9,969.30 rows=45 width=189) (actual time=0.393..47.464 rows=1 loops=1)

7. 0.014 47.453 ↑ 646.0 1 1

Hash Join (cost=1.78..9,737.34 rows=646 width=153) (actual time=0.383..47.453 rows=1 loops=1)

  • Hash Cond: (lima_delta1.four_sierra = romeo1.quebec_seven)
8. 47.418 47.418 ↑ 233.3 18 1

Index Scan using papa_yankee on foxtrot_romeo quebec_sierra (cost=0.56..9,721.50 rows=4,200 width=144) (actual time=0.150..47.418 rows=18 loops=1)

  • Index Cond: ((lima_romeo)::text = 'juliet_uniform'::text)
  • Filter: (((NOT papa_bravo) OR (papa_bravo five_romeo NULL)) AND (juliet_hotel = 81))
  • Rows Removed by Filter: 43,510
9. 0.002 0.021 ↑ 1.0 2 1

Hash (cost=1.20..1.20 rows=2 width=25) (actual time=0.021..0.021 rows=2 loops=1)

  • Buckets: 1,024 Batches: 1 Memory Usage: 9kB
10. 0.019 0.019 ↑ 1.0 2 1

Seq Scan on tango four_uniform (cost=0.00..1.20 rows=2 width=25) (actual time=0.011..0.019 rows=2 loops=1)

  • Filter: (yankee((six)::text) = ANY ('four_yankee'::text[]))
  • Rows Removed by Filter: 11
11. 0.008 0.008 ↑ 1.0 1 1

Index Scan using three on delta five_xray (cost=0.28..0.36 rows=1 width=52) (actual time=0.008..0.008 rows=1 loops=1)

  • Index Cond: (uniform = lima_delta1.lima_echo)
  • Filter: (foxtrot_charlie = 81)
  • Rows Removed by Filter: 1
12. 0.006 0.006 ↑ 1.0 1 1

Index Scan using sierra_delta on sierra_three whiskey (cost=0.28..0.44 rows=1 width=67) (actual time=0.006..0.006 rows=1 loops=1)

  • Index Cond: (quebec_seven = lima_delta1.lima_echo)
13. 0.017 0.017 ↓ 1.4 7 1

Index Scan using foxtrot_sierra on two foxtrot_four (cost=0.29..0.45 rows=5 width=16) (actual time=0.007..0.017 rows=7 loops=1)

  • Index Cond: (lima_delta1.lima_echo = uniform)
Planning time : 1.970 ms
Execution time : 47.695 ms