explain.depesz.com

PostgreSQL's explain analyze made readable

Result: xOtL

Settings
# exclusive inclusive rows x rows loops node
1. 1.269 2,137.734 ↓ 4.0 4 1

GroupAggregate (cost=3,278.28..3,278.35 rows=1 width=48) (actual time=2,136.452..2,137.734 rows=4 loops=1)

  • Group Key: (CASE b.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 b.performancelevel END)
2. 0.384 2,136.465 ↓ 821.0 821 1

Sort (cost=3,278.28..3,278.29 rows=1 width=52) (actual time=2,136.406..2,136.465 rows=821 loops=1)

  • Sort Key: (CASE b.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 b.performancelevel END)
  • Sort Method: quicksort Memory: 89kB
3. 810.423 2,136.081 ↓ 821.0 821 1

Nested Loop (cost=0.81..3,278.27 rows=1 width=52) (actual time=766.734..2,136.081 rows=821 loops=1)

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

Index Scan using assessnent_filters on assessment b (cost=0.56..3,255.51 rows=1 width=20) (actual time=10.250..14.036 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. 1,311.622 1,311.622 ↓ 7.2 7,246 1,654

Function Scan on ufn_indicators_corefilter a (cost=0.25..10.25 rows=1,000 width=16) (actual time=0.428..0.793 rows=7,246 loops=1,654)

Planning time : 1.261 ms