explain.depesz.com

PostgreSQL's explain analyze made readable

Result: xlwx

Settings
# exclusive inclusive rows x rows loops node
1. 5.267 831.954 ↑ 1.7 29,056 1

Hash Left Join (cost=16,300.79..28,171.25 rows=50,418 width=264) (actual time=605.841..831.954 rows=29,056 loops=1)

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

Hash Left Join (cost=16,299.60..27,697.17 rows=50,418 width=288) (actual time=605.803..826.659 rows=29,056 loops=1)

  • Hash Cond: (f.mregion = r.mid)
3. 16.687 820.512 ↑ 1.7 29,056 1

Hash Join (cost=16,298.31..27,439.32 rows=50,418 width=257) (actual time=605.754..820.512 rows=29,056 loops=1)

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

Hash Join (cost=16,138.46..26,486.95 rows=76,892 width=72) (actual time=600.617..798.701 rows=74,685 loops=1)

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

  • Index Cond: ((myear = 2019) AND (mcurrent = true))
  • Filter: mcurrent
  • Heap Fetches: 74685
6. 263.398 598.067 ↑ 1.0 546,110 1

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

  • Buckets: 524288 Batches: 2 Memory Usage: 27747kB
7. 334.669 334.669 ↑ 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.013..334.669 rows=546,110 loops=1)

  • Heap Fetches: 0
8. 1.486 5.124 ↑ 1.0 3,110 1

Hash (cost=120.98..120.98 rows=3,110 width=201) (actual time=5.124..5.124 rows=3,110 loops=1)

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

Hash Left Join (cost=2.66..120.98 rows=3,110 width=201) (actual time=0.088..3.638 rows=3,110 loops=1)

  • Hash Cond: (l.mid = lc.midlayer)
10. 1.699 2.823 ↑ 1.0 3,110 1

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

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

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

Hash (cost=0.77..0.77 rows=22 width=36) (actual time=0.026..0.026 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.011 0.028 ↑ 1.0 30 1

Hash (cost=0.96..0.96 rows=30 width=32) (actual time=0.028..0.028 rows=30 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
15. 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=32) (actual time=0.006..0.017 rows=30 loops=1)

  • Index Cond: (myear = 2019)
16. 0.019 0.036 ↑ 1.0 31 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
17. 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.009..0.017 rows=31 loops=1)

18. 0.013 0.028 ↑ 1.0 25 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
19. 0.015 0.015 ↑ 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.015 rows=25 loops=1)

Planning time : 2.685 ms
Execution time : 835.157 ms