explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9ONp

Settings
# exclusive inclusive rows x rows loops node
1. 7.410 881.839 ↑ 1.7 29,056 1

Hash Left Join (cost=16,381.17..29,372.62 rows=50,418 width=298) (actual time=564.911..881.839 rows=29,056 loops=1)

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

Hash Left Join (cost=16,379.98..28,993.17 rows=50,418 width=306) (actual time=564.880..874.404 rows=29,056 loops=1)

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

Hash Left Join (cost=16,378.57..28,484.39 rows=50,418 width=294) (actual time=564.842..865.844 rows=29,056 loops=1)

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

Hash Join (cost=16,377.28..28,226.54 rows=50,418 width=263) (actual time=564.803..858.096 rows=29,056 loops=1)

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

Hash Join (cost=16,281.22..27,437.24 rows=50,418 width=245) (actual time=560.686..841.071 rows=29,056 loops=1)

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

Hash Join (cost=16,138.46..26,501.95 rows=76,892 width=76) (actual time=556.082..814.465 rows=74,685 loops=1)

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

Index Only Scan using agricultureusing_curr_year_delete on agricultureusing au (cost=0.42..8,653.05 rows=76,892 width=36) (actual time=0.098..102.564 rows=74,685 loops=1)

  • Index Cond: ((myear = 2019) AND (mcurrent = true))
  • Filter: mcurrent
  • Heap Fetches: 74685
8. 241.650 552.624 ↑ 1.0 546,110 1

Hash (cost=8,777.96..8,777.96 rows=546,134 width=56) (actual time=552.624..552.624 rows=546,110 loops=1)

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

Index Only Scan using ind_vsxfeature_complex on vsxfeature f (cost=0.55..8,777.96 rows=546,134 width=56) (actual time=0.020..310.974 rows=546,110 loops=1)

  • Heap Fetches: 0
10. 1.444 4.590 ↑ 1.0 3,110 1

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

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

Hash Left Join (cost=1.33..103.89 rows=3,110 width=185) (actual time=0.051..3.146 rows=3,110 loops=1)

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

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

Hash (cost=0.77..0.77 rows=22 width=36) (actual time=0.023..0.023 rows=22 loops=1)

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

Index Scan using clusters_pkey on clusters cl (cost=0.14..0.77 rows=22 width=36) (actual time=0.003..0.013 rows=22 loops=1)

15. 1.295 4.103 ↑ 1.0 3,221 1

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

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

Index Scan using crops_pkey on crops c (cost=0.28..55.80 rows=3,221 width=34) (actual time=0.011..2.808 rows=3,221 loops=1)

17. 0.010 0.027 ↑ 1.0 31 1

Hash (cost=0.90..0.90 rows=31 width=35) (actual time=0.027..0.027 rows=31 loops=1)

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

Index Scan using regions_pkey on regions r (cost=0.14..0.90 rows=31 width=35) (actual time=0.007..0.017 rows=31 loops=1)

19. 0.015 0.032 ↑ 1.0 30 1

Hash (cost=0.96..0.96 rows=30 width=36) (actual time=0.032..0.032 rows=30 loops=1)

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

Index Scan using leasecontracts_idx_myear on leasecontracts lc (cost=0.14..0.96 rows=30 width=36) (actual time=0.007..0.017 rows=30 loops=1)

  • Index Cond: (myear = 2019)
21. 0.013 0.025 ↑ 1.0 25 1

Hash (cost=0.81..0.81 rows=25 width=40) (actual time=0.025..0.025 rows=25 loops=1)

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

Index Scan using leasecontractunits_idx on leasecontractunits lcu (cost=0.14..0.81 rows=25 width=40) (actual time=0.005..0.012 rows=25 loops=1)

Planning time : 3.450 ms
Execution time : 886.435 ms