explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9Gpk

Settings
# exclusive inclusive rows x rows loops node
1. 0.053 765.771 ↑ 252.5 24 1

Hash Left Join (cost=2,781.24..7,374.89 rows=6,061 width=3,572) (actual time=765.077..765.771 rows=24 loops=1)

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

Hash Left Join (cost=2,760.90..7,137.62 rows=2,405 width=3,260) (actual time=764.814..765.493 rows=24 loops=1)

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

Hash Left Join (cost=2,759.00..7,112.87 rows=2,405 width=3,220) (actual time=764.771..765.409 rows=24 loops=1)

  • Hash Cond: (docdeu.codcob_ultimo = estcob.codcob)
4. 0.062 765.268 ↑ 100.2 24 1

Hash Left Join (cost=2,742.71..7,090.19 rows=2,405 width=3,192) (actual time=764.643..765.268 rows=24 loops=1)

  • Hash Cond: ((docdeu.tipdoc)::text = (tipdoc.tipdoc)::text)
5. 0.032 765.132 ↑ 100.2 24 1

Nested Loop (cost=2,735.22..7,055.04 rows=2,405 width=3,230) (actual time=764.523..765.132 rows=24 loops=1)

6. 0.252 764.980 ↑ 100.2 24 1

Hash Right Join (cost=2,734.80..2,909.66 rows=2,405 width=3,110) (actual time=764.493..764.980 rows=24 loops=1)

  • Hash Cond: (sn.consdocdeu = docdeu.consdocdeu)
7. 0.300 0.300 ↑ 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.300 rows=1,257 loops=1)

8. 0.148 764.428 ↑ 133.6 18 1

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

  • Buckets: 4096 Batches: 1 Memory Usage: 47kB
9. 764.280 764.280 ↑ 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=86.952..764.280 rows=18 loops=1)

  • Index Cond: (estado = 'A'::bpchar)
  • Filter: (meses_transcurridos_neg IS NOT NULL)
  • Rows Removed by Filter: 356692
10. 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)
11. 0.029 0.074 ↑ 1.0 155 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 14kB
12. 0.045 0.045 ↑ 1.0 155 1

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

13. 0.033 0.117 ↑ 2.3 139 1

Hash (cost=12.24..12.24 rows=324 width=36) (actual time=0.117..0.117 rows=139 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 17kB
14. 0.084 0.084 ↑ 2.3 141 1

Seq Scan on estcob (cost=0.00..12.24 rows=324 width=36) (actual time=0.016..0.084 rows=141 loops=1)

15. 0.015 0.029 ↑ 1.0 40 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
16. 0.014 0.014 ↑ 1.0 40 1

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

17. 0.114 0.225 ↑ 1.0 504 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 58kB
18. 0.111 0.111 ↑ 1.0 504 1

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

Planning time : 1.135 ms
Execution time : 765.899 ms