explain.depesz.com

PostgreSQL's explain analyze made readable

Result: HhuW

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

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

2. 0.005 132.676 ↑ 234,450.0 1 1

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

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

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

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

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

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

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

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

Nested Loop Left Join (cost=0.41..99,830,437.03 rows=2 width=3,209) (actual time=113.837..113.837 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 95.382 ↑ 2.0 1 1

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

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

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

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

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

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

Nested Loop (cost=0.41..99,819,542.05 rows=3 width=1,723) (actual time=68.488..68.488 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.048 ↑ 21,208.0 1 1

Nested Loop (cost=0.41..62,435.62 rows=21,208 width=1,368) (actual time=0.048..0.048 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.040 0.040 ↑ 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.040..0.040 rows=1 loops=1)

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

Materialize (cost=0.00..10,794.78 rows=73,052 width=355) (actual time=0.027..65.036 rows=44,491 loops=1)

15. 30.855 30.855 ↑ 1.6 44,491 1

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

16. 12.529 24.495 ↑ 1.1 17,291 1

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

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

18. 0.576 0.576 ↑ 1.5 5,367 1

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

19. 0.003 0.006 ↑ 1.0 3 1

Materialize (cost=0.00..1.04 rows=3 width=208) (actual time=0.004..0.006 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.002..0.003 rows=3 loops=1)

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

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

23. 0.014 0.024 ↑ 4.8 24 1

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

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

25. 0.039 0.054 ↑ 1.0 102 1

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

26. 0.015 0.015 ↑ 1.0 102 1

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

27. 0.000 0.007 ↑ 67,760.0 1 1

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

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

Planning time : 9.587 ms
Execution time : 135.873 ms