explain.depesz.com

PostgreSQL's explain analyze made readable

Result: RtBW

Settings
# exclusive inclusive rows x rows loops node
1. 407.667 6,819.467 ↓ 33.3 109,886 1

Hash Join (cost=5.66..8,648.04 rows=3,297 width=183) (actual time=0.358..6,819.467 rows=109,886 loops=1)

  • Hash Cond: (documento.idtipo = tipo.idtipo)
2. 432.970 6,411.719 ↓ 33.3 109,886 1

Hash Join (cost=3.76..8,592.56 rows=3,297 width=162) (actual time=0.249..6,411.719 rows=109,886 loops=1)

  • Hash Cond: (documento.idtipo = tipo_1.idtipo)
3. 596.992 5,978.679 ↓ 33.3 109,886 1

Nested Loop (cost=1.86..8,545.33 rows=3,297 width=158) (actual time=0.157..5,978.679 rows=109,886 loops=1)

4. 681.118 3,293.853 ↓ 33.3 109,886 1

Nested Loop (cost=1.57..7,424.44 rows=3,297 width=133) (actual time=0.134..3,293.853 rows=109,886 loops=1)

5. 466.276 744.673 ↓ 33.3 109,886 1

Hash Join (cost=1.14..4,849.67 rows=3,297 width=135) (actual time=0.085..744.673 rows=109,886 loops=1)

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

Seq Scan on documento (cost=0.00..3,853.97 rows=109,897 width=139) (actual time=0.024..278.364 rows=109,886 loops=1)

7. 0.012 0.033 ↑ 1.0 6 1

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

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

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

9. 1,868.062 1,868.062 ↑ 1.0 1 109,886

Index Only Scan using personas_pkey on personas (cost=0.43..0.77 rows=1 width=7) (actual time=0.016..0.017 rows=1 loops=109,886)

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

Index Scan using empresa_pkey on empresa (cost=0.29..0.33 rows=1 width=30) (actual time=0.017..0.019 rows=1 loops=109,886)

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

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

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

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

13. 0.043 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.038 0.038 ↑ 1.0 40 1

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