explain.depesz.com

PostgreSQL's explain analyze made readable

Result: qYWn

Settings
# exclusive inclusive rows x rows loops node
1. 0.002 123.795 ↑ 1.0 1 1

Limit (cost=0.41..426.07 rows=1 width=4,675) (actual time=123.795..123.795 rows=1 loops=1)

2. 0.003 123.793 ↑ 234,450.0 1 1

Nested Loop Left Join (cost=0.41..99,793,674.83 rows=234,450 width=4,675) (actual time=123.793..123.793 rows=1 loops=1)

  • Join Filter: (c.chrgid = js.chrgid)
3. 0.009 123.770 ↑ 692.0 1 1

Nested Loop Left Join (cost=0.41..98,310,055.03 rows=692 width=4,570) (actual time=123.770..123.770 rows=1 loops=1)

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

Nested Loop Left Join (cost=0.41..98,308,985.99 rows=692 width=3,715) (actual time=123.700..123.700 rows=1 loops=1)

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

Nested Loop Left Join (cost=0.41..98,307,798.25 rows=692 width=3,451) (actual time=123.671..123.671 rows=1 loops=1)

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

Nested Loop Left Join (cost=0.41..98,303,461.03 rows=2 width=3,206) (actual time=108.058..108.058 rows=1 loops=1)

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

Nested Loop Left Join (cost=0.41..98,298,896.13 rows=2 width=3,037) (actual time=90.874..90.874 rows=1 loops=1)

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

Nested Loop (cost=0.41..98,298,895.01 rows=2 width=2,829) (actual time=90.865..90.865 rows=1 loops=1)

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

Nested Loop (cost=0.41..98,297,943.38 rows=2 width=2,126) (actual time=89.945..89.945 rows=1 loops=1)

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

Nested Loop (cost=0.41..98,292,566.05 rows=3 width=1,720) (actual time=66.579..66.579 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.019 ↑ 21,208.0 1 1

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

12. 0.004 0.004 ↑ 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.004..0.004 rows=1 loops=1)

13. 0.011 0.011 ↑ 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.011..0.011 rows=1 loops=1)

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

Materialize (cost=0.00..10,722.78 rows=73,052 width=352) (actual time=0.012..63.137 rows=44,491 loops=1)

15. 29.835 29.835 ↑ 1.6 44,491 1

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

16. 11.392 22.103 ↑ 1.1 17,291 1

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

17. 10.711 10.711 ↑ 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.010..10.711 rows=17,291 loops=1)

18. 0.524 0.524 ↑ 1.5 5,367 1

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

19. 0.004 0.007 ↑ 1.0 3 1

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

20. 0.003 0.003 ↑ 1.0 3 1

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

21. 13.864 13.864 ↑ 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..13.864 rows=49,223 loops=1)

22. 11.264 11.264 ↑ 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.004..11.264 rows=69,227 loops=1)

23. 0.012 0.023 ↑ 4.8 24 1

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

24. 0.011 0.011 ↑ 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.011 rows=24 loops=1)

25. 0.044 0.061 ↑ 1.0 102 1

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

26. 0.017 0.017 ↑ 1.0 102 1

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

27. 0.016 0.020 ↑ 67,760.0 1 1

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

28. 0.004 0.004 ↑ 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.004..0.004 rows=1 loops=1)

Planning time : 7.897 ms
Execution time : 126.944 ms