explain.depesz.com

PostgreSQL's explain analyze made readable

Result: MoWWs

Settings
# exclusive inclusive rows x rows loops node
1. 0.009 5,092.850 ↑ 6.7 15 1

Sort (cost=454,801.28..454,801.53 rows=100 width=36) (actual time=5,092.850..5,092.850 rows=15 loops=1)

  • Sort Key: ((times.n)::integer)
  • Sort Method: quicksort Memory: 26kB
2. 241.238 5,092.841 ↑ 6.7 15 1

HashAggregate (cost=454,795.96..454,797.96 rows=100 width=36) (actual time=5,092.835..5,092.841 rows=15 loops=1)

  • Group Key: ((times.n)::integer)
3. 89.652 4,851.603 ↓ 8.3 768,429 1

Nested Loop Left Join (cost=2.25..452,937.30 rows=92,933 width=53) (actual time=0.016..4,851.603 rows=768,429 loops=1)

4. 0.071 0.096 ↑ 6.7 15 1

WindowAgg (cost=0.00..2.50 rows=100 width=20) (actual time=0.011..0.096 rows=15 loops=1)

5. 0.025 0.025 ↑ 6.7 15 1

Function Scan on unnest times (cost=0.00..1.00 rows=100 width=16) (actual time=0.007..0.025 rows=15 loops=1)

6. 74.445 4,761.855 ↓ 55.2 51,229 15

Nested Loop (cost=2.25..4,520.06 rows=928 width=57) (actual time=0.029..317.457 rows=51,229 loops=15)

7. 0.000 1,805.805 ↓ 53.6 12,807 15

Nested Loop (cost=1.69..2,335.28 rows=239 width=24) (actual time=0.023..120.387 rows=12,807 loops=15)

8. 0.000 1,239.375 ↓ 53.6 12,808 15

Nested Loop (cost=1.27..2,211.65 rows=239 width=24) (actual time=0.020..82.625 rows=12,808 loops=15)

9. 2.055 669.810 ↓ 54.0 12,808 15

Nested Loop (cost=0.84..2,091.68 rows=237 width=24) (actual time=0.016..44.654 rows=12,808 loops=15)

10. 91.140 91.140 ↓ 53.6 12,814 15

Index Scan using call_idx_began on call t0 (cost=0.42..539.86 rows=239 width=24) (actual time=0.010..6.076 rows=12,814 loops=15)

  • Index Cond: ((began >= (lag(times.t) OVER (?))) AND (began <= times.t) AND (began >= ('{""2020-03-01 13:00:00+00"",""2020-03-08 13:00:00+00"",""2020-03-15 13:00:00+00"",""2020-03-22 13:00:00+00"",""2020-03-29 13:00:00+00"",""2020-04-05 14:00:00+00"",""2020-04-12 14:00:00+00"",""2020-04-19 14:00:00+00"",""2020-04-26 14:00:00+00"",""2020-05-03 14:00:00+00"",""2020-05-10 14:00:00+00"",""2020-05-17 14:00:00+00"",""2020-05-24 14:00:00+00"",""2020-05-31 14:00:00+00"",""2020-06-11 14:00:00+00""}'::timestamp with time zone[])[1]) AND (began < ('{""2020-03-01 13:00:00+00"",""2020-03-08 13:00:00+00"",""2020-03-15 13:00:00+00"",""2020-03-22 13:00:00+00"",""2020-03-29 13:00:00+00"",""2020-04-05 14:00:00+00"",""2020-04-12 14:00:00+00"",""2020-04-19 14:00:00+00"",""2020-04-26 14:00:00+00"",""2020-05-03 14:00:00+00"",""2020-05-10 14:00:00+00"",""2020-05-17 14:00:00+00"",""2020-05-24 14:00:00+00"",""2020-05-31 14:00:00+00"",""2020-06-11 14:00:00+00""}'::timestamp with time zone[])[15]))
11. 576.615 576.615 ↑ 1.0 1 192,205

Index Scan using transcript_unique_call_id on transcript t1 (cost=0.42..6.49 rows=1 width=32) (actual time=0.003..0.003 rows=1 loops=192,205)

  • Index Cond: (call_id = t0.id)
12. 576.378 576.378 ↑ 1.0 1 192,126

Index Scan using enriched_transcript_unique_transcript_id on enriched_transcript t2 (cost=0.42..0.51 rows=1 width=32) (actual time=0.003..0.003 rows=1 loops=192,126)

  • Index Cond: (transcript_id = t1.id)
13. 576.366 576.366 ↑ 1.0 1 192,122

Index Scan using scorecard_run_unique_enriched_transcript_id on scorecard_run t3 (cost=0.42..0.52 rows=1 width=32) (actual time=0.003..0.003 rows=1 loops=192,122)

  • Index Cond: (enriched_transcript_id = t2.id)
14. 2,881.605 2,881.605 ↑ 6.2 4 192,107

Index Scan using scorecard_result_run_id_question_idx_tmp on scorecard_result t4 (cost=0.56..8.89 rows=25 width=65) (actual time=0.005..0.015 rows=4 loops=192,107)

  • Index Cond: (scorecard_run_id = t3.id)
  • Filter: ((parent IS NULL) OR ((question)::text = 'Communication'::text) OR ((question)::text = 'Compliance'::text) OR ((question)::text = 'Conduct'::text))
  • Rows Removed by Filter: 29
Planning time : 3.301 ms
Execution time : 5,092.973 ms