explain.depesz.com

PostgreSQL's explain analyze made readable

Result: B7JA

Settings
# exclusive inclusive rows x rows loops node
1. 8.459 1,009.367 ↑ 1.7 29,056 1

Hash Left Join (cost=21,755.31..28,595.73 rows=50,418 width=306) (actual time=742.983..1,009.367 rows=29,056 loops=1)

  • Hash Cond: (f.mregion = r.mid)
2. 13.216 1,000.858 ↑ 1.7 29,056 1

Hash Join (cost=21,754.52..28,335.53 rows=50,418 width=267) (actual time=742.916..1,000.858 rows=29,056 loops=1)

  • Hash Cond: (au.mcrops = c.mid)
3. 22.252 985.737 ↑ 1.7 29,056 1

Hash Join (cost=21,676.34..27,564.11 rows=50,418 width=249) (actual time=740.998..985.737 rows=29,056 loops=1)

  • Hash Cond: (f.mlayer = l.mid)
4. 161.714 957.263 ↑ 1.0 74,685 1

Hash Join (cost=21,516.40..26,611.64 rows=76,892 width=72) (actual time=734.739..957.263 rows=74,685 loops=1)

  • Hash Cond: (au.mfeature = f.mid)
5. 63.740 63.740 ↑ 1.0 74,685 1

Index Scan using agricultureusing_curr_year_delete on agricultureusing au (cost=0.42..3,399.80 rows=76,892 width=32) (actual time=0.028..63.740 rows=74,685 loops=1)

  • Index Cond: ((myear = 2019) AND (mcurrent = true))
  • Filter: mcurrent
6. 259.989 731.809 ↑ 1.0 546,110 1

Hash (cost=14,156.20..14,156.20 rows=546,110 width=56) (actual time=731.809..731.809 rows=546,110 loops=1)

  • Buckets: 524288 Batches: 2 Memory Usage: 26989kB
7. 471.820 471.820 ↑ 1.0 546,110 1

Seq Scan on vsxfeature f (cost=0.00..14,156.20 rows=546,110 width=56) (actual time=0.020..471.820 rows=546,110 loops=1)

8. 1.663 6.222 ↑ 1.0 3,110 1

Hash (cost=121.07..121.07 rows=3,110 width=193) (actual time=6.222..6.222 rows=3,110 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 396kB
9. 1.587 4.559 ↑ 1.0 3,110 1

Hash Left Join (cost=2.75..121.07 rows=3,110 width=193) (actual time=0.128..4.559 rows=3,110 loops=1)

  • Hash Cond: (l.mcluster = cl.mid)
10. 1.415 2.951 ↑ 1.0 3,110 1

Hash Left Join (cost=2.16..88.63 rows=3,110 width=173) (actual time=0.095..2.951 rows=3,110 loops=1)

  • Hash Cond: (l.mid = lc.midlayer)
11. 1.468 1.468 ↑ 1.0 3,110 1

Index Scan using ind_fk_vsxlayers_mowner on vsxlayers l (cost=0.28..71.00 rows=3,110 width=165) (actual time=0.022..1.468 rows=3,110 loops=1)

  • Index Cond: (mowner = '79610a40-aeaa-4bff-a9d6-5444a5aa94c9'::uuid)
12. 0.011 0.068 ↑ 1.0 30 1

Hash (cost=1.50..1.50 rows=30 width=24) (actual time=0.068..0.068 rows=30 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
13. 0.018 0.057 ↑ 1.0 30 1

Hash Left Join (cost=0.66..1.50 rows=30 width=24) (actual time=0.037..0.057 rows=30 loops=1)

  • Hash Cond: (lc.mid = lcu.midcontract)
14. 0.019 0.019 ↑ 1.0 30 1

Seq Scan on leasecontracts lc (cost=0.00..0.49 rows=30 width=32) (actual time=0.011..0.019 rows=30 loops=1)

  • Filter: (myear = 2019)
  • Rows Removed by Filter: 1
15. 0.011 0.020 ↑ 1.0 25 1

Hash (cost=0.35..0.35 rows=25 width=24) (actual time=0.020..0.020 rows=25 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
16. 0.009 0.009 ↑ 1.0 25 1

Seq Scan on leasecontractunits lcu (cost=0.00..0.35 rows=25 width=24) (actual time=0.005..0.009 rows=25 loops=1)

17. 0.012 0.021 ↑ 1.0 22 1

Hash (cost=0.32..0.32 rows=22 width=36) (actual time=0.021..0.021 rows=22 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
18. 0.009 0.009 ↑ 1.0 22 1

Seq Scan on clusters cl (cost=0.00..0.32 rows=22 width=36) (actual time=0.006..0.009 rows=22 loops=1)

19. 1.074 1.905 ↑ 1.0 3,221 1

Hash (cost=37.91..37.91 rows=3,221 width=34) (actual time=1.905..1.905 rows=3,221 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 243kB
20. 0.831 0.831 ↑ 1.0 3,221 1

Seq Scan on crops c (cost=0.00..37.91 rows=3,221 width=34) (actual time=0.018..0.831 rows=3,221 loops=1)

21. 0.026 0.050 ↑ 1.0 31 1

Hash (cost=0.41..0.41 rows=31 width=35) (actual time=0.050..0.050 rows=31 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
22. 0.024 0.024 ↑ 1.0 31 1

Seq Scan on regions r (cost=0.00..0.41 rows=31 width=35) (actual time=0.016..0.024 rows=31 loops=1)

Planning time : 5.498 ms
Execution time : 1,014.763 ms