explain.depesz.com

PostgreSQL's explain analyze made readable

Result: tF2U

Settings
# exclusive inclusive rows x rows loops node
1. 330.606 7,193.848 ↓ 33.3 109,887 1

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

  • Hash Cond: (documento.idtipo = tipo.idtipo)
2. 321.802 6,863.161 ↓ 33.3 109,887 1

Hash Join (cost=3.76..8,592.56 rows=3,297 width=158) (actual time=0.231..6,863.161 rows=109,887 loops=1)

  • Hash Cond: (documento.idtipo = tipo_1.idtipo)
3. 594.453 6,541.282 ↓ 33.3 109,887 1

Nested Loop (cost=1.86..8,545.33 rows=3,297 width=158) (actual time=0.130..6,541.282 rows=109,887 loops=1)

4. 549.147 3,529.315 ↓ 33.3 109,887 1

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

5. 406.115 892.315 ↓ 33.3 109,887 1

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

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

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

7. 0.013 0.030 ↑ 1.0 6 1

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

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

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

9. 2,087.853 2,087.853 ↑ 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.018..0.019 rows=1 loops=109,887)

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

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

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

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

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

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

13. 0.045 0.081 ↑ 1.0 40 1

Hash (cost=1.40..1.40 rows=40 width=33) (actual time=0.081..0.081 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)