explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 9bdE

Settings
# exclusive inclusive rows x rows loops node
1. 8.082 920.007 ↑ 1.7 29,056 1

Hash Left Join (cost=16,284.45..23,424.00 rows=50,418 width=280) (actual time=646.009..920.007 rows=29,056 loops=1)

  • Hash Cond: ((lc.mid = lcu.midcontract) AND (au.mcrops = lcu.midcrop))
2. 8.899 911.889 ↑ 1.7 29,056 1

Hash Left Join (cost=16,283.27..22,949.91 rows=50,418 width=288) (actual time=645.965..911.889 rows=29,056 loops=1)

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

Hash Left Join (cost=16,281.85..22,441.13 rows=50,418 width=276) (actual time=645.912..902.947 rows=29,056 loops=1)

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

Hash Join (cost=16,280.56..22,183.33 rows=50,418 width=245) (actual time=645.849..894.941 rows=29,056 loops=1)

  • Hash Cond: (f.mlayer = l.mid)
5. 165.175 869.372 ↑ 1.0 74,685 1

Hash Join (cost=16,137.80..21,248.04 rows=76,892 width=76) (actual time=641.484..869.372 rows=74,685 loops=1)

  • Hash Cond: (au.mfeature = f.mid)
6. 65.620 65.620 ↑ 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.029..65.620 rows=74,685 loops=1)

  • Index Cond: ((myear = 2019) AND (mcurrent = true))
  • Filter: mcurrent
7. 283.694 638.577 ↑ 1.0 546,110 1

Hash (cost=8,777.60..8,777.60 rows=546,110 width=56) (actual time=638.577..638.577 rows=546,110 loops=1)

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

Index Only Scan using ind_vsxfeature_complex on vsxfeature f (cost=0.55..8,777.60 rows=546,110 width=56) (actual time=0.016..354.883 rows=546,110 loops=1)

  • Heap Fetches: 0
9. 1.444 4.324 ↑ 1.0 3,110 1

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

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

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

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

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

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

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

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

14. 0.026 0.048 ↑ 1.0 31 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
15. 0.022 0.022 ↑ 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.022 rows=31 loops=1)

16. 0.020 0.043 ↑ 1.0 30 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
17. 0.023 0.023 ↑ 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.010..0.023 rows=30 loops=1)

  • Index Cond: (myear = 2019)
18. 0.017 0.036 ↑ 1.0 25 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
19. 0.019 0.019 ↑ 1.0 25 1

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

Planning time : 2.619 ms
Execution time : 924.783 ms