explain.depesz.com

PostgreSQL's explain analyze made readable

Result: qCq2

Settings
# exclusive inclusive rows x rows loops node
1. 8.306 1,008.675 ↑ 1.7 29,056 1

Hash Left Join (cost=21,755.31..28,595.73 rows=50,418 width=306) (actual time=749.408..1,008.675 rows=29,056 loops=1)

  • Hash Cond: (f.mregion = r.mid)
2. 13.202 1,000.331 ↑ 1.7 29,056 1

Hash Join (cost=21,754.52..28,335.53 rows=50,418 width=267) (actual time=749.352..1,000.331 rows=29,056 loops=1)

  • Hash Cond: (au.mcrops = c.mid)
3. 21.639 985.218 ↑ 1.7 29,056 1

Hash Join (cost=21,676.34..27,564.11 rows=50,418 width=249) (actual time=747.427..985.218 rows=29,056 loops=1)

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

Hash Join (cost=21,516.40..26,611.64 rows=76,892 width=72) (actual time=742.147..958.334 rows=74,685 loops=1)

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

  • Index Cond: ((myear = 2019) AND (mcurrent = true))
  • Filter: mcurrent
6. 264.198 739.270 ↑ 1.0 546,110 1

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

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

8. 1.519 5.245 ↑ 1.0 3,110 1

Hash (cost=121.07..121.07 rows=3,110 width=193) (actual time=5.245..5.245 rows=3,110 loops=1)

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

Hash Left Join (cost=2.75..121.07 rows=3,110 width=193) (actual time=0.122..3.726 rows=3,110 loops=1)

  • Hash Cond: (l.mcluster = cl.mid)
10. 1.113 2.291 ↑ 1.0 3,110 1

Hash Left Join (cost=2.16..88.63 rows=3,110 width=173) (actual time=0.097..2.291 rows=3,110 loops=1)

  • Hash Cond: (l.mid = lc.midlayer)
11. 1.107 1.107 ↑ 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.020..1.107 rows=3,110 loops=1)

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

Hash (cost=1.50..1.50 rows=30 width=24) (actual time=0.071..0.071 rows=30 loops=1)

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

Hash Left Join (cost=0.66..1.50 rows=30 width=24) (actual time=0.039..0.059 rows=30 loops=1)

  • Hash Cond: (lc.mid = lcu.midcontract)
14. 0.023 0.023 ↑ 1.0 30 1

Seq Scan on leasecontracts lc (cost=0.00..0.49 rows=30 width=32) (actual time=0.011..0.023 rows=30 loops=1)

  • Filter: (myear = 2019)
  • Rows Removed by Filter: 1
15. 0.010 0.020 ↑ 1.0 25 1

Hash (cost=0.35..0.35 rows=25 width=24) (actual time=0.020..0.020 rows=25 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
16. 0.010 0.010 ↑ 1.0 25 1

Seq Scan on leasecontractunits lcu (cost=0.00..0.35 rows=25 width=24) (actual time=0.006..0.010 rows=25 loops=1)

17. 0.009 0.020 ↑ 1.0 22 1

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

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
18. 0.011 0.011 ↑ 1.0 22 1

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

19. 1.079 1.911 ↑ 1.0 3,221 1

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

  • Buckets: 4096 Batches: 1 Memory Usage: 243kB
20. 0.832 0.832 ↑ 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.832 rows=3,221 loops=1)

21. 0.021 0.038 ↑ 1.0 31 1

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

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

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

Planning time : 3.463 ms
Execution time : 1,013.842 ms