explain.depesz.com

PostgreSQL's explain analyze made readable

Result: EPNO

Settings
# exclusive inclusive rows x rows loops node
1. 0.027 757.707 ↑ 252.5 24 1

Hash Left Join (cost=2,764.95..7,352.21 rows=6,061 width=3,540) (actual time=757.015..757.707 rows=24 loops=1)

  • Hash Cond: (nits.cod_actividad_economica = actividad_itau.cod_actividad_economica)
2. 0.052 757.484 ↑ 100.2 24 1

Hash Left Join (cost=2,744.61..7,114.94 rows=2,405 width=3,228) (actual time=756.807..757.484 rows=24 loops=1)

  • Hash Cond: ((nits.cod_segmento_gest)::text = textin(int2out(subsegmento_itau.cls_segmento)))
3. 0.034 757.402 ↑ 100.2 24 1

Hash Left Join (cost=2,742.71..7,090.19 rows=2,405 width=3,188) (actual time=756.766..757.402 rows=24 loops=1)

  • Hash Cond: ((docdeu.tipdoc)::text = (tipdoc.tipdoc)::text)
4. 0.031 757.296 ↑ 100.2 24 1

Nested Loop (cost=2,735.22..7,055.04 rows=2,405 width=3,226) (actual time=756.674..757.296 rows=24 loops=1)

5. 0.244 757.145 ↑ 100.2 24 1

Hash Right Join (cost=2,734.80..2,909.66 rows=2,405 width=3,106) (actual time=756.644..757.145 rows=24 loops=1)

  • Hash Cond: (sn.consdocdeu = docdeu.consdocdeu)
6. 0.327 0.327 ↑ 2.3 1,257 1

Seq Scan on segui_negociaciones sn (cost=0.00..167.40 rows=2,840 width=16) (actual time=0.016..0.327 rows=1,257 loops=1)

7. 0.149 756.574 ↑ 133.6 18 1

Hash (cost=2,704.74..2,704.74 rows=2,405 width=3,110) (actual time=756.574..756.574 rows=18 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 47kB
8. 756.425 756.425 ↑ 133.6 18 1

Index Scan using docdeu_estado_idx on docdeu (cost=0.42..2,704.74 rows=2,405 width=3,110) (actual time=84.224..756.425 rows=18 loops=1)

  • Index Cond: (estado = 'A'::bpchar)
  • Filter: (meses_transcurridos_neg IS NOT NULL)
  • Rows Removed by Filter: 356692
9. 0.120 0.120 ↑ 1.0 1 24

Index Scan using nits_nit on nits (cost=0.42..1.72 rows=1 width=152) (actual time=0.005..0.005 rows=1 loops=24)

  • Index Cond: (nit = docdeu.nit)
10. 0.029 0.072 ↑ 1.0 155 1

Hash (cost=5.55..5.55 rows=155 width=38) (actual time=0.072..0.072 rows=155 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 14kB
11. 0.043 0.043 ↑ 1.0 155 1

Seq Scan on tipdoc (cost=0.00..5.55 rows=155 width=38) (actual time=0.008..0.043 rows=155 loops=1)

12. 0.017 0.030 ↑ 1.0 40 1

Hash (cost=1.40..1.40 rows=40 width=166) (actual time=0.030..0.030 rows=40 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
13. 0.013 0.013 ↑ 1.0 40 1

Seq Scan on subsegmento_itau (cost=0.00..1.40 rows=40 width=166) (actual time=0.007..0.013 rows=40 loops=1)

14. 0.091 0.196 ↑ 1.0 504 1

Hash (cost=14.04..14.04 rows=504 width=248) (actual time=0.196..0.196 rows=504 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 58kB
15. 0.105 0.105 ↑ 1.0 504 1

Seq Scan on actividad_itau (cost=0.00..14.04 rows=504 width=248) (actual time=0.007..0.105 rows=504 loops=1)

Planning time : 0.853 ms
Execution time : 757.829 ms