explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 8YaE

Settings
# exclusive inclusive rows x rows loops node
1. 2.411 18,009.087 ↓ 4.0 4 1

GroupAggregate (cost=3,280.81..3,280.88 rows=1 width=48) (actual time=18,007.748..18,009.087 rows=4 loops=1)

  • Group Key: (CASE bb.performancelevel WHEN '1'::text THEN 'ADVANCED'::character varying WHEN '2'::text THEN 'PROFICIENT'::character varying WHEN '3'::text THEN 'BELOW BASIC'::character varying WHEN '4'::text THEN 'NEARLY MET STANDARD'::character varying WHEN '5'::text THEN 'NOT MET STANDARD'::character varying WHEN '6'::text THEN 'FAR BELOW BASIC'::character varying ELSE bb.performancelevel END)
2. 0.680 18,006.676 ↓ 821.0 821 1

Sort (cost=3,280.81..3,280.81 rows=1 width=52) (actual time=18,006.582..18,006.676 rows=821 loops=1)

  • Sort Key: (CASE bb.performancelevel WHEN '1'::text THEN 'ADVANCED'::character varying WHEN '2'::text THEN 'PROFICIENT'::character varying WHEN '3'::text THEN 'BELOW BASIC'::character varying WHEN '4'::text THEN 'NEARLY MET STANDARD'::character varying WHEN '5'::text THEN 'NOT MET STANDARD'::character varying WHEN '6'::text THEN 'FAR BELOW BASIC'::character varying ELSE bb.performancelevel END)
  • Sort Method: quicksort Memory: 89kB
3. 899.345 18,005.996 ↓ 821.0 821 1

Nested Loop (cost=0.81..3,280.80 rows=1 width=52) (actual time=1,062.136..18,005.996 rows=821 loops=1)

  • Join Filter: (a.studentid = bb.studentid)
  • Rows Removed by Join Filter: 11,984,063
4. 17.523 17.523 ↓ 1,654.0 1,654 1

Index Scan using assessnent_filters on assessment bb (cost=0.56..3,255.51 rows=1 width=20) (actual time=6.248..17.523 rows=1,654 loops=1)

  • Index Cond: ((accountid = 2) AND ((assessmenttypecode)::text = 'ELPACs'::text) AND (date >= '2019-08-08'::date) AND (date <= '2020-05-29'::date))
  • Filter: (((name)::text ~~* '%WL%'::text) OR ((subjectareacode)::text = 'WL'::text))
  • Rows Removed by Filter: 3,308
5. 17,089.128 17,089.128 ↓ 3,623.0 7,246 1,654

Function Scan on ufn_indicators_corefilter a (cost=0.25..25.25 rows=2 width=16) (actual time=0.324..10.332 rows=7,246 loops=1,654)

  • Filter: ((gradelevelcode <= 12) AND ('sped'::text = ANY (subgroup)))
  • Rows Removed by Filter: 24,158
Planning time : 1.476 ms