explain.depesz.com

PostgreSQL's explain analyze made readable

Result: exUV

Settings

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.001 0.044 ↑ 1.0 2 1

Limit (cost=4.37..4.44 rows=2 width=72) (actual time=0.041..0.044 rows=2 loops=1)

2. 0.010 0.043 ↑ 1.0 2 1

GroupAggregate (cost=4.37..4.44 rows=2 width=72) (actual time=0.041..0.043 rows=2 loops=1)

  • Group Key: teacher_id
3. 0.015 0.033 ↓ 1.5 3 1

Sort (cost=4.37..4.37 rows=2 width=40) (actual time=0.033..0.033 rows=3 loops=1)

  • Sort Key: teacher_id
  • Sort Method: quicksort Memory: 25kB
4. 0.012 0.018 ↓ 1.5 3 1

Bitmap Heap Scan on call_record_stat (cost=1.29..4.36 rows=2 width=40) (actual time=0.014..0.018 rows=3 loops=1)

  • Recheck Cond: ((stat_date >= '2020-09-03 00:55:01+00'::timestamp with time zone) AND (stat_date <= '2020-09-10 00:55:01+00'::timestamp with time zone))
  • Filter: (teacher_id = ANY ('{111903,112137}'::bigint[]))
  • Rows Removed by Filter: 2
  • Heap Blocks: exact=2
5. 0.006 0.006 ↓ 1.2 5 1

Bitmap Index Scan on call_record_stat_stat_date_idx (cost=0.00..1.29 rows=4 width=0) (actual time=0.006..0.006 rows=5 loops=1)

  • Index Cond: ((stat_date >= '2020-09-03 00:55:01+00'::timestamp with time zone) AND (stat_date <= '2020-09-10 00:55:01+00'::timestamp with time zone))
Planning time : 0.198 ms
Execution time : 0.093 ms