explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Jxs1

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

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

2. 0.004 132.227 ↑ 234,450.0 1 1

Nested Loop Left Join (cost=0.41..101,321,525.60 rows=234,450 width=4,676) (actual time=132.227..132.227 rows=1 loops=1)

  • Join Filter: (c.chrgid = js.chrgid)
3. 0.011 132.212 ↑ 692.0 1 1

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

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

Nested Loop Left Join (cost=0.41..99,836,836.77 rows=692 width=3,716) (actual time=132.120..132.120 rows=1 loops=1)

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

Nested Loop Left Join (cost=0.41..99,835,649.02 rows=692 width=3,452) (actual time=132.079..132.079 rows=1 loops=1)

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

Nested Loop Left Join (cost=0.41..99,831,311.81 rows=2 width=3,207) (actual time=113.225..113.225 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.375 ↑ 2.0 1 1

Nested Loop Left Join (cost=0.41..99,826,746.91 rows=2 width=3,038) (actual time=94.375..94.375 rows=1 loops=1)

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

Nested Loop (cost=0.41..99,826,745.78 rows=2 width=2,830) (actual time=94.357..94.357 rows=1 loops=1)

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

Nested Loop (cost=0.41..99,825,794.16 rows=2 width=2,127) (actual time=92.889..92.889 rows=1 loops=1)

  • Join Filter: (b.jailid = i.jailid)
  • Rows Removed by Join Filter: 17,527
10. 3.639 64.583 ↑ 3.0 1 1

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

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

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

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

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

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

16. 10.781 26.922 ↑ 1.0 17,528 1

Materialize (cost=0.00..3,578.81 rows=18,054 width=406) (actual time=0.015..26.922 rows=17,528 loops=1)

17. 16.141 16.141 ↑ 1.0 17,528 1

Seq Scan on jamin_inmate i (cost=0.00..2,535.54 rows=18,054 width=406) (actual time=0.011..16.141 rows=17,528 loops=1)

18. 0.964 0.964 ↑ 1.5 5,367 1

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

19. 0.002 0.013 ↑ 1.0 3 1

Materialize (cost=0.00..1.04 rows=3 width=208) (actual time=0.013..0.013 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.011..0.011 rows=3 loops=1)

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

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

23. 0.012 0.035 ↑ 4.8 24 1

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

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

25. 0.053 0.081 ↑ 1.0 102 1

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

26. 0.028 0.028 ↑ 1.0 102 1

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

27. 0.001 0.011 ↑ 67,760.0 1 1

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

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

Planning time : 7.731 ms
Execution time : 135.598 ms