explain.depesz.com

PostgreSQL's explain analyze made readable

Result: jyu2

Settings
# exclusive inclusive rows x rows loops node
1. 0.049 8,809.532 ↑ 2.5 2 1

Sort (cost=1,951.39..1,951.40 rows=5 width=556) (actual time=8,809.531..8,809.532 rows=2 loops=1)

  • Sort Key: (count(*)) DESC
  • Sort Method: quicksort Memory: 25kB
2. 0.009 8,809.483 ↑ 2.5 2 1

GroupAggregate (cost=1,951.23..1,951.33 rows=5 width=556) (actual time=8,809.482..8,809.483 rows=2 loops=1)

  • Group Key: t.category, t.projectid
3. 0.029 8,809.474 ↑ 1.0 5 1

Sort (cost=1,951.23..1,951.25 rows=5 width=548) (actual time=8,809.474..8,809.474 rows=5 loops=1)

  • Sort Key: t.category, t.projectid
  • Sort Method: quicksort Memory: 25kB
4. 0.001 8,809.445 ↑ 1.0 5 1

Subquery Scan on t (cost=1,951.11..1,951.18 rows=5 width=548) (actual time=8,809.442..8,809.445 rows=5 loops=1)

5. 0.005 8,809.444 ↑ 1.0 5 1

Limit (cost=1,951.11..1,951.13 rows=5 width=556) (actual time=8,809.442..8,809.444 rows=5 loops=1)

6. 0.693 8,809.439 ↑ 24.6 5 1

Sort (cost=1,951.11..1,951.42 rows=123 width=556) (actual time=8,809.438..8,809.439 rows=5 loops=1)

  • Sort Key: mch.contactdate DESC
  • Sort Method: top-N heapsort Memory: 25kB
7. 2.142 8,808.746 ↓ 3.3 404 1

Nested Loop Left Join (cost=1.56..1,949.07 rows=123 width=556) (actual time=23.260..8,808.746 rows=404 loops=1)

  • Join Filter: ((((mcf.jsondata #>> '{group001,cdisp,value,0}'::text[]) || '_'::text) || 'spb'::text) = (smart_route_citycall.code)::text)
  • Rows Removed by Join Filter: 1532
8. 3.061 8,805.392 ↓ 3.3 404 1

Nested Loop Left Join (cost=1.56..1,806.14 rows=123 width=254) (actual time=22.356..8,805.392 rows=404 loops=1)

  • Join Filter: ((mcf.jsondata #>> '{group001,cdisp,value,0}'::text[]) = (smart_route.code)::text)
  • Rows Removed by Join Filter: 1532
9. 1.730 8,799.907 ↓ 3.3 404 1

Nested Loop (cost=1.56..1,664.74 rows=123 width=225) (actual time=20.368..8,799.907 rows=404 loops=1)

10. 1.590 5,194.339 ↓ 3.4 413 1

Nested Loop (cost=1.00..1,551.26 rows=123 width=41) (actual time=20.262..5,194.339 rows=413 loops=1)

11. 1,832.329 1,832.329 ↓ 3.4 420 1

Index Scan using idx_mv_c_history_cnt on mv_contact_history mch (cost=0.56..493.45 rows=125 width=16) (actual time=15.358..1,832.329 rows=420 loops=1)

  • Index Cond: ((contactid)::text = 'npoclilg85k6o0000li1mut850oh8174'::text)
12. 3,360.420 3,360.420 ↑ 1.0 1 420

Index Scan using mv_pc_pk on mv_phone_call mpc (cost=0.43..8.45 rows=1 width=41) (actual time=7.969..8.001 rows=1 loops=420)

  • Index Cond: (uuid = mch.interaction)
13. 3,603.838 3,603.838 ↑ 1.0 1 413

Index Scan using mv_custom_form_pk on mv_custom_form mcf (cost=0.56..0.91 rows=1 width=250) (actual time=8.712..8.726 rows=1 loops=413)

  • Index Cond: ((uuid)::text = (mpc.formuuid)::text)
14. 0.485 2.424 ↓ 2.0 4 404

Materialize (cost=0.00..137.10 rows=2 width=47) (actual time=0.003..0.006 rows=4 loops=404)

15. 1.939 1.939 ↓ 2.0 4 1

Seq Scan on mv_catalog_item smart_route (cost=0.00..137.09 rows=2 width=47) (actual time=1.177..1.939 rows=4 loops=1)

  • Filter: ((cataloguuid)::text = 'pstfld00000000000m4f76qch47nl5ig'::text)
  • Rows Removed by Filter: 2724
16. 0.341 1.212 ↓ 2.0 4 404

Materialize (cost=0.00..137.10 rows=2 width=47) (actual time=0.002..0.003 rows=4 loops=404)

17. 0.871 0.871 ↓ 2.0 4 1

Seq Scan on mv_catalog_item smart_route_citycall (cost=0.00..137.09 rows=2 width=47) (actual time=0.548..0.871 rows=4 loops=1)

  • Filter: ((cataloguuid)::text = 'pstfld00000000000m4f76qch47nl5ig'::text)
  • Rows Removed by Filter: 2724