explain.depesz.com

PostgreSQL's explain analyze made readable

Result: N4uH

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

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

2. 0.003 129.906 ↑ 234,450.0 1 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Nested Loop (cost=0.41..62,435.62 rows=21,208 width=1,369) (actual time=0.051..0.051 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.027 0.027 ↑ 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.027..0.027 rows=1 loops=1)

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

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

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

16. 11.343 23.229 ↑ 1.1 17,291 1

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

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

18. 1.464 1.464 ↑ 1.5 5,367 1

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

19. 0.004 0.031 ↑ 1.0 3 1

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

20. 0.027 0.027 ↑ 1.0 3 1

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

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

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

23. 0.013 0.029 ↑ 4.8 24 1

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

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

25. 0.045 0.065 ↑ 1.0 102 1

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

26. 0.020 0.020 ↑ 1.0 102 1

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

27. 0.003 0.019 ↑ 67,760.0 1 1

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

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

Planning time : 14.061 ms
Execution time : 134.053 ms