# Result: KDbU : Optimization for: Optimization for: plan #vGml; plan #4VVA

Settings

### Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 621.095 11,460.437 ↓ 33.3 109,887 1

(cost=1.86..8,743.66 rows=3,297 width=183) (actual time=0.193..11,460.437 rows=109,887 loops=1)

2. 642.772 9,850.359 ↓ 33.3 109,887 1

(cost=1.86..8,644.45 rows=3,297 width=158) (actual time=0.169..9,850.359 rows=109,887 loops=1)

3. 603.280 7,779.056 ↓ 33.3 109,887 1

(cost=1.86..8,545.24 rows=3,297 width=158) (actual time=0.135..7,779.056 rows=109,887 loops=1)

4. 502.545 3,989.053 ↓ 33.3 109,887 1

(cost=1.57..7,424.35 rows=3,297 width=133) (actual time=0.121..3,989.053 rows=109,887 loops=1)

5. 464.446 959.107 ↓ 33.3 109,887 1

(cost=1.14..4,849.49 rows=3,297 width=135) (actual time=0.093..959.107 rows=109,887 loops=1)

6. 494.632 494.632 ↑ 1.0 109,887 1

Seq Scan on documento (cost=0.00..3,853.87 rows=109,887 width=139) (actual time=0.049..494.632 rows=109,887 loops=1)

7. 0.010 0.029 ↑ 1.0 6 1

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

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

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

9. 2,527.401 2,527.401 ↑ 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.021..0.023 rows=1 loops=109,887)

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

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

• Index Cond: ((nro_patronal)::text = (documento.nro_patronal)::text)
11. 1,428.531 1,428.531 ↑ 1.0 1 109,887

Index Scan using tipo_idtipo_idx on tipo tipo_1 (cost=0.00..0.02 rows=1 width=4) (actual time=0.012..0.013 rows=1 loops=109,887)

• Index Cond: (idtipo = documento.idtipo)
12. 988.983 988.983 ↑ 1.0 1 109,887

Index Scan using tipo_idtipo_idx on tipo (cost=0.00..0.02 rows=1 width=33) (actual time=0.007..0.009 rows=1 loops=109,887)

• Index Cond: (documento.idtipo = idtipo)