explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 5ND0

Settings
# exclusive inclusive rows x rows loops node
1. 8.661 1,067.751 ↑ 1.7 29,056 1

Hash Left Join (cost=21,739.35..29,480.40 rows=50,418 width=306) (actual time=778.755..1,067.751 rows=29,056 loops=1)

  • Hash Cond: ((lc.mid = lcu.midcontract) AND (c.mid = lcu.midcrop))
2. 9.486 1,059.063 ↑ 1.7 29,056 1

Hash Left Join (cost=21,738.62..29,101.41 rows=50,418 width=306) (actual time=778.720..1,059.063 rows=29,056 loops=1)

  • Hash Cond: ((au.myear = lc.myear) AND (l.mid = lc.midlayer))
3. 8.074 1,049.536 ↑ 1.7 29,056 1

Hash Left Join (cost=21,737.69..28,593.10 rows=50,418 width=294) (actual time=778.670..1,049.536 rows=29,056 loops=1)

  • Hash Cond: (f.mregion = r.mid)
4. 13.475 1,041.406 ↑ 1.7 29,056 1

Hash Join (cost=21,736.89..28,332.91 rows=50,418 width=263) (actual time=778.598..1,041.406 rows=29,056 loops=1)

  • Hash Cond: (au.mcrops = c.mid)
5. 22.087 1,025.872 ↑ 1.7 29,056 1

Hash Join (cost=21,658.72..27,561.49 rows=50,418 width=245) (actual time=776.509..1,025.872 rows=29,056 loops=1)

  • Hash Cond: (f.mlayer = l.mid)
6. 167.227 999.282 ↑ 1.0 74,685 1

Hash Join (cost=21,516.40..26,626.64 rows=76,892 width=76) (actual time=771.950..999.282 rows=74,685 loops=1)

  • Hash Cond: (au.mfeature = f.mid)
7. 63.159 63.159 ↑ 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=36) (actual time=0.030..63.159 rows=74,685 loops=1)

  • Index Cond: ((myear = 2019) AND (mcurrent = true))
  • Filter: mcurrent
8. 278.013 768.896 ↑ 1.0 546,110 1

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

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

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

10. 1.580 4.503 ↑ 1.0 3,110 1

Hash (cost=103.44..103.44 rows=3,110 width=185) (actual time=4.503..4.503 rows=3,110 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 395kB
11. 1.766 2.923 ↑ 1.0 3,110 1

Hash Left Join (cost=0.88..103.44 rows=3,110 width=185) (actual time=0.053..2.923 rows=3,110 loops=1)

  • Hash Cond: (l.mcluster = cl.mid)
12. 1.133 1.133 ↑ 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.023..1.133 rows=3,110 loops=1)

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
14. 0.013 0.013 ↑ 1.0 22 1

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

15. 1.203 2.059 ↑ 1.0 3,221 1

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

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

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

17. 0.034 0.056 ↑ 1.0 31 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
18. 0.022 0.022 ↑ 1.0 31 1

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

19. 0.021 0.041 ↑ 1.0 30 1

Hash (cost=0.49..0.49 rows=30 width=36) (actual time=0.041..0.041 rows=30 loops=1)

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

Seq Scan on leasecontracts lc (cost=0.00..0.49 rows=30 width=36) (actual time=0.012..0.020 rows=30 loops=1)

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

Hash (cost=0.35..0.35 rows=25 width=40) (actual time=0.027..0.027 rows=25 loops=1)

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

Seq Scan on leasecontractunits lcu (cost=0.00..0.35 rows=25 width=40) (actual time=0.007..0.013 rows=25 loops=1)

Planning time : 3.697 ms
Execution time : 1,075.589 ms