explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Iilc : 3

Settings
# exclusive inclusive rows x rows loops node
1. 8.699 1,190.511 ↑ 1.6 29,056 1

Hash Left Join (cost=36,310.96..45,865.87 rows=47,708 width=797) (actual time=878.734..1,190.511 rows=29,056 loops=1)

  • Hash Cond: ((lc.mid = lcu.midcontract) AND (c.mid = lcu.midcrop))
2. 9.354 1,181.754 ↑ 1.6 29,056 1

Hash Left Join (cost=36,308.34..45,505.31 rows=47,708 width=797) (actual time=878.662..1,181.754 rows=29,056 loops=1)

  • Hash Cond: ((au.myear = lc.myear) AND (l.mid = lc.midlayer))
3. 7.904 1,172.342 ↑ 1.6 29,056 1

Hash Left Join (cost=36,306.80..45,142.94 rows=47,708 width=785) (actual time=878.590..1,172.342 rows=29,056 loops=1)

  • Hash Cond: (f.mregion = r.mid)
4. 13.405 1,164.390 ↑ 1.6 29,056 1

Hash Join (cost=36,302.65..44,894.35 rows=47,708 width=269) (actual time=878.520..1,164.390 rows=29,056 loops=1)

  • Hash Cond: (au.mcrops = c.mid)
5. 21.896 1,148.893 ↑ 1.6 29,056 1

Hash Join (cost=36,224.19..44,159.90 rows=47,708 width=251) (actual time=876.398..1,148.893 rows=29,056 loops=1)

  • Hash Cond: (f.mlayer = l.mid)
6. 182.331 1,121.288 ↓ 1.0 74,707 1

Hash Join (cost=36,085.51..43,271.27 rows=72,766 width=76) (actual time=869.881..1,121.288 rows=74,707 loops=1)

  • Hash Cond: (au.mfeature = f.mid)
7. 72.222 72.222 ↓ 1.0 74,707 1

Index Scan using agricultureusing_curr_year_delete on agricultureusing au (cost=0.42..5,538.36 rows=72,817 width=36) (actual time=0.017..72.222 rows=74,707 loops=1)

  • Index Cond: ((myear = 2019) AND (is_deleted = false))
  • Filter: (NOT is_deleted)
8. 274.821 866.735 ↑ 1.0 546,055 1

Hash (cost=28,726.03..28,726.03 rows=546,060 width=56) (actual time=866.735..866.735 rows=546,055 loops=1)

  • Buckets: 524288 Batches: 2 Memory Usage: 26987kB
9. 591.914 591.914 ↑ 1.0 546,055 1

Seq Scan on vsxfeature f (cost=0.00..28,726.03 rows=546,060 width=56) (actual time=0.026..591.914 rows=546,055 loops=1)

  • Filter: (NOT is_deleted)
  • Rows Removed by Filter: 484
10. 1.876 5.709 ↓ 1.0 3,110 1

Hash (cost=100.03..100.03 rows=3,092 width=191) (actual time=5.709..5.709 rows=3,110 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 395kB
11. 2.261 3.833 ↓ 1.0 3,110 1

Hash Left Join (cost=0.56..100.03 rows=3,092 width=191) (actual time=0.055..3.833 rows=3,110 loops=1)

  • Hash Cond: (l.mcluster = cl.mid)
12. 1.544 1.544 ↓ 1.0 3,110 1

Index Scan using ind_fk_vsxlayers_mowner on vsxlayers l (cost=0.28..79.19 rows=3,092 width=166) (actual time=0.018..1.544 rows=3,110 loops=1)

  • Index Cond: (mowner = '79610a40-aeaa-4bff-a9d6-5444a5aa94c9'::uuid)
13. 0.012 0.028 ↓ 2.8 22 1

Hash (cost=0.18..0.18 rows=8 width=41) (actual time=0.028..0.028 rows=22 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
14. 0.016 0.016 ↓ 2.8 22 1

Seq Scan on clusters cl (cost=0.00..0.18 rows=8 width=41) (actual time=0.011..0.016 rows=22 loops=1)

15. 1.204 2.092 ↓ 1.0 3,226 1

Hash (cost=38.15..38.15 rows=3,225 width=34) (actual time=2.092..2.092 rows=3,226 loops=1)

  • Buckets: 4096 Batches: 1 Memory Usage: 243kB
16. 0.888 0.888 ↓ 1.0 3,226 1

Seq Scan on crops c (cost=0.00..38.15 rows=3,225 width=34) (actual time=0.019..0.888 rows=3,226 loops=1)

17. 0.022 0.048 ↑ 4.5 31 1

Hash (cost=2.40..2.40 rows=140 width=520) (actual time=0.048..0.048 rows=31 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 11kB
18. 0.026 0.026 ↑ 4.5 31 1

Seq Scan on regions r (cost=0.00..2.40 rows=140 width=520) (actual time=0.018..0.026 rows=31 loops=1)

19. 0.020 0.058 ↑ 1.0 30 1

Hash (cost=1.09..1.09 rows=30 width=36) (actual time=0.058..0.058 rows=30 loops=1)

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

Seq Scan on leasecontracts lc (cost=0.00..1.09 rows=30 width=36) (actual time=0.014..0.038 rows=30 loops=1)

  • Filter: (myear = 2019)
  • Rows Removed by Filter: 1
21. 0.017 0.058 ↑ 1.0 25 1

Hash (cost=2.25..2.25 rows=25 width=40) (actual time=0.058..0.058 rows=25 loops=1)

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

Seq Scan on leasecontractunits lcu (cost=0.00..2.25 rows=25 width=40) (actual time=0.009..0.041 rows=25 loops=1)

Planning time : 4.384 ms
Execution time : 1,198.547 ms