explain.depesz.com

PostgreSQL's explain analyze made readable

Result: vGml

Settings

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 352.330 7,993.538 ↓ 33.3 109,887 1

Hash Left Join (cost=5.66..8,648.04 rows=3,297 width=183) (actual time=0.305..7,993.538 rows=109,887 loops=1)

  • Hash Cond: (documento.idtipo = tipo.idtipo)
2. 320.671 7,641.133 ↓ 33.3 109,887 1

Hash Join (cost=3.76..8,592.56 rows=3,297 width=158) (actual time=0.218..7,641.133 rows=109,887 loops=1)

  • Hash Cond: (documento.idtipo = tipo_1.idtipo)
3. 640.545 7,320.391 ↓ 33.3 109,887 1

Nested Loop (cost=1.86..8,545.33 rows=3,297 width=158) (actual time=0.136..7,320.391 rows=109,887 loops=1)

4. 631.205 3,822.784 ↓ 33.3 109,887 1

Nested Loop (cost=1.57..7,424.44 rows=3,297 width=133) (actual time=0.121..3,822.784 rows=109,887 loops=1)

5. 443.416 883.952 ↓ 33.3 109,887 1

Hash Join (cost=1.14..4,849.67 rows=3,297 width=135) (actual time=0.084..883.952 rows=109,887 loops=1)

  • Hash Cond: ((documento.idestado)::text = (estado.idestado)::text)
6. 440.502 440.502 ↑ 1.0 109,887 1

Seq Scan on documento (cost=0.00..3,853.97 rows=109,897 width=139) (actual time=0.039..440.502 rows=109,887 loops=1)

7. 0.010 0.034 ↑ 1.0 6 1

Hash (cost=1.06..1.06 rows=6 width=4) (actual time=0.034..0.034 rows=6 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 1kB
8. 0.024 0.024 ↑ 1.0 6 1

Seq Scan on estado (cost=0.00..1.06 rows=6 width=4) (actual time=0.019..0.024 rows=6 loops=1)

9. 2,307.627 2,307.627 ↑ 1.0 1 109,887

Index Only Scan using personas_pkey on personas (cost=0.43..0.77 rows=1 width=7) (actual time=0.020..0.021 rows=1 loops=109,887)

  • Index Cond: (ci = (documento.ci)::text)
  • Heap Fetches: 0
10. 2,857.062 2,857.062 ↑ 1.0 1 109,887

Index Scan using empresa_pkey on empresa (cost=0.29..0.33 rows=1 width=30) (actual time=0.025..0.026 rows=1 loops=109,887)

  • Index Cond: ((nro_patronal)::text = (documento.nro_patronal)::text)
11. 0.035 0.071 ↑ 1.0 40 1

Hash (cost=1.40..1.40 rows=40 width=4) (actual time=0.071..0.071 rows=40 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 2kB
12. 0.036 0.036 ↑ 1.0 40 1

Seq Scan on tipo tipo_1 (cost=0.00..1.40 rows=40 width=4) (actual time=0.004..0.036 rows=40 loops=1)

13. 0.039 0.075 ↑ 1.0 40 1

Hash (cost=1.40..1.40 rows=40 width=33) (actual time=0.075..0.075 rows=40 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 3kB
14. 0.036 0.036 ↑ 1.0 40 1

Seq Scan on tipo (cost=0.00..1.40 rows=40 width=33) (actual time=0.003..0.036 rows=40 loops=1)