explain.depesz.com

PostgreSQL's explain analyze made readable

Result: gktM

Settings
# exclusive inclusive rows x rows loops node
1. 16.125 1,280.881 ↑ 1.8 29,056 1

Hash Left Join (cost=431.85..32,254.82 rows=53,021 width=318) (actual time=10.184..1,280.881 rows=29,056 loops=1)

  • Hash Cond: ((lc.mid = lcu.midcontract) AND (c.mid = lcu.midcrop))
2. 9.849 1,264.728 ↑ 1.8 29,056 1

Hash Left Join (cost=431.13..31,723.75 rows=53,021 width=313) (actual time=10.146..1,264.728 rows=29,056 loops=1)

  • Hash Cond: ((au.myear = lc.myear) AND (l.mid = lc.midlayer))
3. 9.542 1,254.842 ↑ 1.8 29,056 1

Hash Left Join (cost=430.19..31,189.26 rows=53,021 width=301) (actual time=10.103..1,254.842 rows=29,056 loops=1)

  • Hash Cond: (f.mregion = r.mid)
4. 15.031 1,245.264 ↑ 1.8 29,056 1

Hash Join (cost=429.39..30,918.65 rows=53,021 width=270) (actual time=10.059..1,245.264 rows=29,056 loops=1)

  • Hash Cond: (au.mcrops = c.mid)
5. 26.946 1,224.730 ↑ 1.8 29,056 1

Hash Join (cost=238.23..29,998.45 rows=53,021 width=245) (actual time=4.527..1,224.730 rows=29,056 loops=1)

  • Hash Cond: (f.mlayer = l.mid)
6. 94.390 1,193.348 ↑ 1.1 74,555 1

Merge Join (cost=95.92..29,022.69 rows=80,862 width=76) (actual time=0.063..1,193.348 rows=74,555 loops=1)

  • Merge Cond: (f.mid = au.mfeature)
7. 978.757 978.757 ↑ 1.1 535,389 1

Index Scan using vsxfeature_pkey on vsxfeature f (cost=0.42..17,609.70 rows=562,678 width=56) (actual time=0.014..978.757 rows=535,389 loops=1)

  • Filter: (NOT is_deleted)
  • Rows Removed by Filter: 19377
8. 120.201 120.201 ↑ 1.1 74,555 1

Index Only Scan using agricultureusing_curr_year_delete on agricultureusing au (cost=0.42..9,106.24 rows=80,862 width=36) (actual time=0.014..120.201 rows=74,555 loops=1)

  • Index Cond: ((myear = 2019) AND (is_deleted = false))
  • Filter: (NOT is_deleted)
  • Heap Fetches: 74555
9. 1.622 4.436 ↑ 1.0 3,110 1

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

  • Buckets: 4096 Batches: 1 Memory Usage: 395kB
10. 1.736 2.814 ↑ 1.0 3,110 1

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

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

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

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
13. 0.016 0.016 ↑ 1.0 22 1

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

14. 1.359 5.503 ↓ 1.0 3,234 1

Hash (cost=150.90..150.90 rows=3,221 width=41) (actual time=5.503..5.503 rows=3,234 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 266kB
15. 1.856 4.144 ↓ 1.0 3,234 1

Hash Join (cost=68.70..150.90 rows=3,221 width=41) (actual time=1.818..4.144 rows=3,234 loops=1)

  • Hash Cond: (c.mstyle = s.mid)
16. 0.517 0.517 ↓ 1.0 3,234 1

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

17. 0.902 1.771 ↑ 1.0 2,871 1

Hash (cost=32.81..32.81 rows=2,871 width=23) (actual time=1.771..1.771 rows=2,871 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 187kB
18. 0.869 0.869 ↑ 1.0 2,871 1

Seq Scan on vsxstyles s (cost=0.00..32.81 rows=2,871 width=23) (actual time=0.010..0.869 rows=2,871 loops=1)

19. 0.018 0.036 ↓ 1.1 33 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
20. 0.018 0.018 ↓ 1.1 33 1

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

21. 0.018 0.037 ↓ 1.0 31 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
22. 0.019 0.019 ↓ 1.0 31 1

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

  • Filter: (myear = 2019)
  • Rows Removed by Filter: 1
23. 0.015 0.028 ↓ 1.1 28 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
24. 0.013 0.013 ↓ 1.1 28 1

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

Planning time : 4.935 ms
Execution time : 1,282.209 ms