explain.depesz.com

PostgreSQL's explain analyze made readable

Result: RcIx

Settings
# exclusive inclusive rows x rows loops node
1. 0.011 14,619.490 ↑ 6.7 15 1

Sort (cost=454,802.18..454,802.43 rows=100 width=36) (actual time=14,619.489..14,619.490 rows=15 loops=1)

  • Sort Key: ((times.n)::integer)
  • Sort Method: quicksort Memory: 26kB
2. 254.936 14,619.479 ↑ 6.7 15 1

HashAggregate (cost=454,796.85..454,798.85 rows=100 width=36) (actual time=14,619.471..14,619.479 rows=15 loops=1)

  • Group Key: ((times.n)::integer)
3. 86.887 14,364.543 ↓ 8.3 768,429 1

Nested Loop Left Join (cost=2.25..452,938.41 rows=92,922 width=53) (actual time=0.012..14,364.543 rows=768,429 loops=1)

4. 0.064 0.086 ↑ 6.7 15 1

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

5. 0.022 0.022 ↑ 6.7 15 1

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

6. 176.319 14,277.570 ↓ 55.2 51,229 15

Nested Loop (cost=2.25..4,520.07 rows=928 width=57) (actual time=0.054..951.838 rows=51,229 loops=15)

7. 21.984 1,998.510 ↓ 53.6 12,807 15

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

8. 24.642 1,400.160 ↓ 53.6 12,808 15

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

9. 44.895 799.140 ↓ 54.0 12,808 15

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

10. 177.630 177.630 ↓ 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.009..11.842 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. 12,102.741 12,102.741 ↑ 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.044..0.063 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.274 ms
Execution time : 14,619.580 ms