explain.depesz.com

PostgreSQL's explain analyze made readable

Result: BAIC : 4

Settings
# exclusive inclusive rows x rows loops node
1. 8.351 1,211.091 ↑ 1.6 29,056 1

Hash Left Join (cost=36,293.60..45,846.07 rows=47,686 width=797) (actual time=908.309..1,211.091 rows=29,056 loops=1)

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

Hash Left Join (cost=36,290.98..45,485.68 rows=47,686 width=797) (actual time=908.237..1,202.681 rows=29,056 loops=1)

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

Hash Left Join (cost=36,289.44..45,123.47 rows=47,686 width=785) (actual time=908.163..1,192.804 rows=29,056 loops=1)

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

Hash Join (cost=36,285.29..44,875.20 rows=47,686 width=269) (actual time=908.089..1,184.598 rows=29,056 loops=1)

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

Hash Join (cost=36,206.83..44,141.05 rows=47,686 width=251) (actual time=905.974..1,168.695 rows=29,056 loops=1)

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

Hash Join (cost=36,068.14..43,252.76 rows=72,732 width=76) (actual time=900.591..1,142.542 rows=74,707 loops=1)

  • Hash Cond: (au.mfeature = f.mid)
7. 63.219 63.219 ↓ 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.015..63.219 rows=74,707 loops=1)

  • Index Cond: ((myear = 2019) AND (is_deleted = false))
  • Filter: (NOT is_deleted)
8. 289.738 897.929 ↓ 1.0 546,055 1

Hash (cost=28,720.08..28,720.08 rows=545,211 width=56) (actual time=897.929..897.929 rows=546,055 loops=1)

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

Seq Scan on vsxfeature f (cost=0.00..28,720.08 rows=545,211 width=56) (actual time=0.014..608.191 rows=546,055 loops=1)

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

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

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

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

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

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

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

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

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

15. 1.198 2.079 ↓ 1.0 3,226 1

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

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

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

17. 0.028 0.049 ↑ 4.5 31 1

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

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

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

19. 0.015 0.053 ↑ 1.0 30 1

Hash (cost=1.09..1.09 rows=30 width=36) (actual time=0.053..0.053 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.018 0.059 ↑ 1.0 25 1

Hash (cost=2.25..2.25 rows=25 width=40) (actual time=0.059..0.059 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.533 ms
Execution time : 1,219.558 ms