explain.depesz.com

PostgreSQL's explain analyze made readable

Result: xJXV

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 129.956 ↑ 1.0 1 1

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

2. 0.004 129.956 ↑ 234,450.0 1 1

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

  • Join Filter: (c.chrgid = js.chrgid)
3. 0.015 129.947 ↑ 692.0 1 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Nested Loop (cost=0.41..98,292,566.05 rows=3 width=1,721) (actual time=67.100..67.100 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,369) (actual time=0.019..0.019 rows=1 loops=1)

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

13. 0.010 0.010 ↑ 1.0 1 1

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

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

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

15. 27.367 27.367 ↑ 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.004..27.367 rows=44,491 loops=1)

16. 12.531 24.276 ↑ 1.1 17,291 1

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

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

18. 0.763 0.763 ↑ 1.5 5,367 1

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

19. 0.001 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.005 0.005 ↑ 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.005 rows=3 loops=1)

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

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

23. 0.012 0.021 ↑ 4.8 24 1

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

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

25. 0.043 0.057 ↑ 1.0 102 1

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

26. 0.014 0.014 ↑ 1.0 102 1

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

27. 0.001 0.005 ↑ 67,760.0 1 1

Materialize (cost=0.00..3,065.40 rows=67,760 width=105) (actual time=0.005..0.005 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.614 ms
Execution time : 133.287 ms