explain.depesz.com

PostgreSQL's explain analyze made readable

Result: kv5k : 2

Settings
# exclusive inclusive rows x rows loops node
1. 11.037 1,203.239 ↑ 1.6 29,056 1

Hash Left Join (cost=36,318.41..45,876.18 rows=47,742 width=797) (actual time=900.443..1,203.239 rows=29,056 loops=1)

  • Hash Cond: ((lc.mid = lcu.midcontract) AND (c.mid = lcu.midcrop))
2. 12.563 1,192.147 ↑ 1.6 29,056 1

Hash Left Join (cost=36,315.79..45,515.37 rows=47,742 width=797) (actual time=900.375..1,192.147 rows=29,056 loops=1)

  • Hash Cond: ((au.myear = lc.myear) AND (l.mid = lc.midlayer))
3. 10.762 1,179.525 ↑ 1.6 29,056 1

Hash Left Join (cost=36,314.25..45,152.73 rows=47,742 width=785) (actual time=900.301..1,179.525 rows=29,056 loops=1)

  • Hash Cond: (f.mregion = r.mid)
4. 17.876 1,168.723 ↑ 1.6 29,056 1

Hash Join (cost=36,310.10..44,903.81 rows=47,742 width=269) (actual time=900.241..1,168.723 rows=29,056 loops=1)

  • Hash Cond: (au.mcrops = c.mid)
5. 28.250 1,146.863 ↑ 1.6 29,056 1

Hash Join (cost=36,231.64..44,168.89 rows=47,742 width=251) (actual time=896.237..1,146.863 rows=29,056 loops=1)

  • Hash Cond: (f.mlayer = l.mid)
6. 172.235 1,110.280 ↓ 1.0 74,707 1

Hash Join (cost=36,092.95..43,279.72 rows=72,817 width=76) (actual time=887.109..1,110.280 rows=74,707 loops=1)

  • Hash Cond: (au.mfeature = f.mid)
7. 54.316 54.316 ↓ 1.0 74,707 1

Index Scan using agricultureusing_curr_year_delete on agricultureusing au (cost=0.42..5,538.36 rows=72,817 width=36) (actual time=0.019..54.316 rows=74,707 loops=1)

  • Index Cond: ((myear = 2019) AND (is_deleted = false))
  • Filter: (NOT is_deleted)
8. 281.953 883.729 ↑ 1.0 546,055 1

Hash (cost=28,726.99..28,726.99 rows=546,539 width=56) (actual time=883.729..883.729 rows=546,055 loops=1)

  • Buckets: 524288 Batches: 2 Memory Usage: 26987kB
9. 601.776 601.776 ↑ 1.0 546,055 1

Seq Scan on vsxfeature f (cost=0.00..28,726.99 rows=546,539 width=56) (actual time=0.020..601.776 rows=546,055 loops=1)

  • Filter: (NOT is_deleted)
  • Rows Removed by Filter: 484
10. 2.793 8.333 ↓ 1.0 3,110 1

Hash (cost=100.03..100.03 rows=3,092 width=191) (actual time=8.333..8.333 rows=3,110 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 395kB
11. 3.472 5.540 ↓ 1.0 3,110 1

Hash Left Join (cost=0.56..100.03 rows=3,092 width=191) (actual time=0.089..5.540 rows=3,110 loops=1)

  • Hash Cond: (l.mcluster = cl.mid)
12. 2.021 2.021 ↓ 1.0 3,110 1

Index Scan using ind_fk_vsxlayers_mowner on vsxlayers l (cost=0.28..79.19 rows=3,092 width=166) (actual time=0.024..2.021 rows=3,110 loops=1)

  • Index Cond: (mowner = '79610a40-aeaa-4bff-a9d6-5444a5aa94c9'::uuid)
13. 0.022 0.047 ↓ 2.8 22 1

Hash (cost=0.18..0.18 rows=8 width=41) (actual time=0.047..0.047 rows=22 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
14. 0.025 0.025 ↓ 2.8 22 1

Seq Scan on clusters cl (cost=0.00..0.18 rows=8 width=41) (actual time=0.016..0.025 rows=22 loops=1)

15. 2.308 3.984 ↓ 1.0 3,226 1

Hash (cost=38.15..38.15 rows=3,225 width=34) (actual time=3.984..3.984 rows=3,226 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 243kB
16. 1.676 1.676 ↓ 1.0 3,226 1

Seq Scan on crops c (cost=0.00..38.15 rows=3,225 width=34) (actual time=0.028..1.676 rows=3,226 loops=1)

17. 0.013 0.040 ↑ 4.5 31 1

Hash (cost=2.40..2.40 rows=140 width=520) (actual time=0.040..0.040 rows=31 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
18. 0.027 0.027 ↑ 4.5 31 1

Seq Scan on regions r (cost=0.00..2.40 rows=140 width=520) (actual time=0.018..0.027 rows=31 loops=1)

19. 0.024 0.059 ↑ 1.0 30 1

Hash (cost=1.09..1.09 rows=30 width=36) (actual time=0.059..0.059 rows=30 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
20. 0.035 0.035 ↑ 1.0 30 1

Seq Scan on leasecontracts lc (cost=0.00..1.09 rows=30 width=36) (actual time=0.013..0.035 rows=30 loops=1)

  • Filter: (myear = 2019)
  • Rows Removed by Filter: 1
21. 0.016 0.055 ↑ 1.0 25 1

Hash (cost=2.25..2.25 rows=25 width=40) (actual time=0.055..0.055 rows=25 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
22. 0.039 0.039 ↑ 1.0 25 1

Seq Scan on leasecontractunits lcu (cost=0.00..2.25 rows=25 width=40) (actual time=0.009..0.039 rows=25 loops=1)

Planning time : 6.811 ms
Execution time : 1,213.145 ms