explain.depesz.com

PostgreSQL's explain analyze made readable

Result: awWu

Settings
# exclusive inclusive rows x rows loops node
1. 0.009 5,471.147 ↑ 14.3 14 1

Sort (cost=4,091,614.40..4,091,614.90 rows=200 width=36) (actual time=5,471.146..5,471.147 rows=14 loops=1)

  • Sort Key: i.bucket
  • Sort Method: quicksort Memory: 26kB
2. 241.970 5,471.138 ↑ 14.3 14 1

HashAggregate (cost=4,091,602.75..4,091,606.75 rows=200 width=36) (actual time=5,471.134..5,471.138 rows=14 loops=1)

  • Group Key: i.bucket
3. 90.089 5,229.168 ↑ 1.2 768,428 1

Nested Loop Left Join (cost=2.25..4,073,016.09 rows=929,333 width=53) (actual time=0.070..5,229.168 rows=768,428 loops=1)

4. 0.015 0.015 ↑ 71.4 14 1

Function Scan on generate_series i (cost=0.00..10.00 rows=1,000 width=4) (actual time=0.004..0.015 rows=14 loops=1)

5. 221.664 5,139.064 ↓ 59.1 54,888 14

Nested Loop (cost=2.25..4,063.73 rows=928 width=57) (actual time=0.061..367.076 rows=54,888 loops=14)

6. 14.476 1,843.688 ↓ 57.4 13,722 14

Nested Loop (cost=1.69..1,879.00 rows=239 width=24) (actual time=0.052..131.692 rows=13,722 loops=14)

7. 0.000 1,252.846 ↓ 57.4 13,723 14

Nested Loop (cost=1.27..1,755.36 rows=239 width=24) (actual time=0.047..89.489 rows=13,723 loops=14)

8. 4.889 678.062 ↓ 57.9 13,723 14

Nested Loop (cost=0.85..1,635.40 rows=237 width=24) (actual time=0.043..48.433 rows=13,723 loops=14)

9. 96.558 96.558 ↓ 57.4 13,729 14

Index Scan using call_idx_began on call t0 (cost=0.42..83.58 rows=239 width=24) (actual time=0.037..6.897 rows=13,729 loops=14)

  • Index Cond: ((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[])[i.bucket]) 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[])[(i.bucket + 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[])[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]))
10. 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)
11. 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)
12. 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)
13. 3,073.712 3,073.712 ↑ 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.007..0.016 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 : 2.338 ms
Execution time : 5,471.232 ms