explain.depesz.com

PostgreSQL's explain analyze made readable

Result: SUR5

Settings
# exclusive inclusive rows x rows loops node
1. 0.026 789.118 ↑ 252.5 24 1

Hash Left Join (cost=2,764.95..7,352.21 rows=6,061 width=3,312) (actual time=788.431..789.118 rows=24 loops=1)

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

Hash Left Join (cost=2,744.61..7,114.94 rows=2,405 width=3,046) (actual time=788.203..788.874 rows=24 loops=1)

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

Hash Left Join (cost=2,742.71..7,090.19 rows=2,405 width=3,170) (actual time=788.162..788.792 rows=24 loops=1)

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

Nested Loop (cost=2,735.22..7,055.04 rows=2,405 width=3,208) (actual time=788.066..788.681 rows=24 loops=1)

5. 0.243 788.511 ↑ 100.2 24 1

Hash Right Join (cost=2,734.80..2,909.66 rows=2,405 width=3,088) (actual time=788.036..788.511 rows=24 loops=1)

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

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

7. 0.146 787.969 ↑ 133.6 18 1

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

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

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

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

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

  • Index Cond: (nit = docdeu.nit)
10. 0.031 0.075 ↑ 1.0 155 1

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

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

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

12. 0.015 0.027 ↑ 1.0 40 1

Hash (cost=1.40..1.40 rows=40 width=2) (actual time=0.027..0.027 rows=40 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
13. 0.012 0.012 ↑ 1.0 40 1

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

14. 0.110 0.218 ↑ 1.0 504 1

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

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

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

Planning time : 0.856 ms
Execution time : 789.250 ms