explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Zxwi

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 126.628 ↑ 1.0 1 1

Limit (cost=0.41..432.58 rows=1 width=4,676) (actual time=126.628..126.628 rows=1 loops=1)

2. 0.004 126.627 ↑ 234,450.0 1 1

Nested Loop Left Join (cost=0.41..101,320,650.83 rows=234,450 width=4,676) (actual time=126.627..126.627 rows=1 loops=1)

  • Join Filter: (c.chrgid = js.chrgid)
3. 0.016 126.607 ↑ 692.0 1 1

Nested Loop Left Join (cost=0.41..99,837,031.03 rows=692 width=4,571) (actual time=126.607..126.607 rows=1 loops=1)

  • Join Filter: (agen.z_agencyname_agencies = pub_arra.agenciesid)
  • Rows Removed by Join Filter: 102
4. 0.007 126.520 ↑ 692.0 1 1

Nested Loop Left Join (cost=0.41..99,835,961.99 rows=692 width=3,716) (actual time=126.520..126.520 rows=1 loops=1)

  • Join Filter: (b.arragid = agen.agencycode)
  • Rows Removed by Join Filter: 23
5. 4.334 126.482 ↑ 692.0 1 1

Nested Loop Left Join (cost=0.41..99,834,774.25 rows=692 width=3,452) (actual time=126.482..126.482 rows=1 loops=1)

  • Join Filter: (j.personid = p.id)
  • Rows Removed by Join Filter: 69,227
6. 3.402 110.712 ↑ 2.0 1 1

Nested Loop Left Join (cost=0.41..99,830,437.03 rows=2 width=3,207) (actual time=110.712..110.712 rows=1 loops=1)

  • Join Filter: ((b.jailid = r.jailid) AND (b.bookid = r.bookid))
  • Rows Removed by Join Filter: 49,222
7. 0.004 91.415 ↑ 2.0 1 1

Nested Loop Left Join (cost=0.41..99,825,872.13 rows=2 width=3,038) (actual time=91.415..91.415 rows=1 loops=1)

  • Join Filter: (j.judgeid = c.judgeid)
  • Rows Removed by Join Filter: 3
8. 0.532 91.396 ↑ 2.0 1 1

Nested Loop (cost=0.41..99,825,871.01 rows=2 width=2,830) (actual time=91.396..91.396 rows=1 loops=1)

  • Join Filter: (c.z_code_offenses = o.offensesid)
  • Rows Removed by Join Filter: 5,366
9. 1.336 89.370 ↑ 2.0 1 1

Nested Loop (cost=0.41..99,824,919.38 rows=2 width=2,127) (actual time=89.370..89.370 rows=1 loops=1)

  • Join Filter: (b.jailid = i.jailid)
  • Rows Removed by Join Filter: 17,290
10. 3.256 64.910 ↑ 3.0 1 1

Nested Loop (cost=0.41..99,819,542.05 rows=3 width=1,721) (actual time=64.910..64.910 rows=1 loops=1)

  • Join Filter: ((b.jailid = c.jailid) AND (b.bookid = c.bookid))
  • Rows Removed by Join Filter: 44,490
11. 0.004 0.059 ↑ 21,208.0 1 1

Nested Loop (cost=0.41..62,435.62 rows=21,208 width=1,368) (actual time=0.059..0.059 rows=1 loops=1)

12. 0.020 0.020 ↑ 21,208.0 1 1

Seq Scan on stg_combined_jail_stays pt_js (cost=0.00..2,863.08 rows=21,208 width=961) (actual time=0.020..0.020 rows=1 loops=1)

13. 0.035 0.035 ↑ 1.0 1 1

Index Scan using jamin_book_pkey on jamin_book b (cost=0.41..2.80 rows=1 width=407) (actual time=0.035..0.035 rows=1 loops=1)

  • Index Cond: (jamin_book_zid = pt_js.convertedid)
14. 31.334 61.595 ↑ 1.6 44,491 1

Materialize (cost=0.00..10,794.78 rows=73,052 width=353) (actual time=0.014..61.595 rows=44,491 loops=1)

15. 30.261 30.261 ↑ 1.6 44,491 1

Seq Scan on jamin_charge c (cost=0.00..7,004.52 rows=73,052 width=353) (actual time=0.009..30.261 rows=44,491 loops=1)

16. 11.418 23.124 ↑ 1.1 17,291 1

Materialize (cost=0.00..2,670.26 rows=18,284 width=406) (actual time=0.033..23.124 rows=17,291 loops=1)

17. 11.706 11.706 ↑ 1.1 17,291 1

Seq Scan on jamin_inmate i (cost=0.00..1,613.84 rows=18,284 width=406) (actual time=0.029..11.706 rows=17,291 loops=1)

18. 1.494 1.494 ↑ 1.5 5,367 1

Seq Scan on offenses o (cost=0.00..374.25 rows=8,125 width=703) (actual time=0.016..1.494 rows=5,367 loops=1)

19. 0.004 0.015 ↑ 1.0 3 1

Materialize (cost=0.00..1.04 rows=3 width=208) (actual time=0.013..0.015 rows=3 loops=1)

20. 0.011 0.011 ↑ 1.0 3 1

Seq Scan on tdt_core_judge j (cost=0.00..1.03 rows=3 width=208) (actual time=0.010..0.011 rows=3 loops=1)

21. 15.895 15.895 ↑ 1.0 49,223 1

Seq Scan on jamin_releas r (cost=0.00..1,532.78 rows=49,978 width=169) (actual time=0.003..15.895 rows=49,223 loops=1)

22. 11.436 11.436 ↑ 1.0 69,227 1

Seq Scan on tdt_core_person p (cost=0.00..1,303.27 rows=69,227 width=245) (actual time=0.022..11.436 rows=69,227 loops=1)

23. 0.009 0.031 ↑ 4.8 24 1

Materialize (cost=0.00..4.71 rows=114 width=264) (actual time=0.008..0.031 rows=24 loops=1)

24. 0.022 0.022 ↑ 4.8 24 1

Seq Scan on tdt_core_agency agen (cost=0.00..4.14 rows=114 width=264) (actual time=0.004..0.022 rows=24 loops=1)

25. 0.042 0.071 ↑ 1.0 102 1

Materialize (cost=0.00..10.53 rows=102 width=855) (actual time=0.012..0.071 rows=102 loops=1)

26. 0.029 0.029 ↑ 1.0 102 1

Seq Scan on agencies pub_arra (cost=0.00..10.02 rows=102 width=855) (actual time=0.002..0.029 rows=102 loops=1)

27. 0.003 0.016 ↑ 67,760.0 1 1

Materialize (cost=0.00..3,065.40 rows=67,760 width=105) (actual time=0.016..0.016 rows=1 loops=1)

28. 0.013 0.013 ↑ 67,760.0 1 1

Seq Scan on jamin_sentence js (cost=0.00..1,601.60 rows=67,760 width=105) (actual time=0.013..0.013 rows=1 loops=1)

Planning time : 12.385 ms
Execution time : 130.650 ms