explain.depesz.com

PostgreSQL's explain analyze made readable

Result: yjtm : Optimization for: plan #jUbs

Settings

Optimization path:

# exclusive inclusive rows x rows loops node
1. 0.103 0.326 ↓ 4.4 22 1

Sort (cost=28.97..28.99 rows=5 width=705) (actual time=0.324..0.326 rows=22 loops=1)

  • Sort Key: dbu.dbu_id
  • Sort Method: quicksort Memory: 30kB
2. 0.075 0.223 ↓ 4.4 22 1

Nested Loop (cost=1.42..28.92 rows=5 width=705) (actual time=0.075..0.223 rows=22 loops=1)

3. 0.003 0.044 ↑ 1.0 1 1

Nested Loop (cost=1.13..9.07 rows=1 width=107) (actual time=0.040..0.044 rows=1 loops=1)

4. 0.005 0.037 ↑ 1.0 1 1

Nested Loop (cost=0.85..8.75 rows=1 width=70) (actual time=0.034..0.037 rows=1 loops=1)

  • Join Filter: (cbu.cam_id = cam.cam_id)
  • Rows Removed by Join Filter: 9
5. 0.001 0.025 ↑ 1.0 1 1

Nested Loop (cost=0.85..7.52 rows=1 width=64) (actual time=0.024..0.025 rows=1 loops=1)

6. 0.004 0.020 ↑ 1.0 1 1

Nested Loop Left Join (cost=0.57..5.01 rows=1 width=64) (actual time=0.019..0.020 rows=1 loops=1)

7. 0.011 0.011 ↑ 1.0 1 1

Index Scan using pk_cbu_id on cbulto cbu (cost=0.29..2.50 rows=1 width=28) (actual time=0.011..0.011 rows=1 loops=1)

  • Index Cond: (cbu_id = 8435)
8. 0.005 0.005 ↑ 1.0 1 1

Index Scan using pk_direccion on direccion dir (cost=0.28..2.50 rows=1 width=44) (actual time=0.005..0.005 rows=1 loops=1)

  • Index Cond: (cbu.dir_id = dir_id)
9. 0.004 0.004 ↑ 1.0 1 1

Index Scan using idx_clu_cliente on cliente cli (cost=0.28..2.50 rows=1 width=12) (actual time=0.004..0.004 rows=1 loops=1)

  • Index Cond: (cli_id = cbu.cli_id)
10. 0.007 0.007 ↑ 1.0 10 1

Seq Scan on camion cam (cost=0.00..1.10 rows=10 width=14) (actual time=0.006..0.007 rows=10 loops=1)

11. 0.004 0.004 ↑ 1.0 1 1

Index Scan using pk_entidad on entidad ent (cost=0.28..0.32 rows=1 width=45) (actual time=0.004..0.004 rows=1 loops=1)

  • Index Cond: (ent_id = cli.ent_id)
12. 0.016 0.016 ↓ 4.4 22 1

Index Scan using idx_dbulto_cbuid on dbulto dbu (cost=0.29..2.58 rows=5 width=34) (actual time=0.008..0.016 rows=22 loops=1)

  • Index Cond: (cbu_id = 8435)
13.          

SubPlan (forNested Loop)

14. 0.044 0.044 ↑ 1.0 1 22

Index Scan using ubicacion_pkey on ubicacion ubi2 (cost=0.15..2.37 rows=1 width=10) (actual time=0.002..0.002 rows=1 loops=22)

  • Index Cond: (ubi_id = cbu.ubi_id)
15. 0.044 0.044 ↑ 1.0 1 22

Seq Scan on bultos_packing bp (cost=0.00..1.06 rows=1 width=7) (actual time=0.001..0.002 rows=1 loops=22)

  • Filter: (bup_id = dbu.bup_id)
  • Rows Removed by Filter: 4