explain.depesz.com

PostgreSQL's explain analyze made readable

Result: o2Ah

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.137 ↓ 0.0 0 1

GroupAggregate (cost=864.18..864.75 rows=19 width=28) (actual time=0.137..0.137 rows=0 loops=1)

  • Group Key: (date(task.updated_at))
2. 0.005 0.137 ↓ 0.0 0 1

Sort (cost=864.18..864.23 rows=19 width=15) (actual time=0.136..0.137 rows=0 loops=1)

  • Sort Key: (date(task.updated_at))
  • Sort Method: quicksort Memory: 25kB
3. 0.015 0.132 ↓ 0.0 0 1

Hash Join (cost=5.07..863.78 rows=19 width=15) (actual time=0.132..0.132 rows=0 loops=1)

  • Hash Cond: ("job->jobSet".test_suite_id = "job->jobSet->testSuite".id)
4. 0.004 0.074 ↑ 22.0 4 1

Nested Loop (cost=0.99..859.41 rows=88 width=23) (actual time=0.044..0.074 rows=4 loops=1)

5. 0.008 0.054 ↑ 22.0 4 1

Nested Loop (cost=0.71..828.87 rows=88 width=23) (actual time=0.033..0.054 rows=4 loops=1)

6. 0.030 0.030 ↑ 22.0 4 1

Index Scan using idx_tasks_status on tasks task (cost=0.42..209.81 rows=88 width=23) (actual time=0.019..0.030 rows=4 loops=1)

  • Index Cond: (((status)::text = ANY ('{passed,failed}'::text[])) AND (updated_at >= '2020-03-15 22:00:00+00'::timestamp with time zone) AND (updated_at <= '2020-03-23 22:00:00+00'::timestamp with time zone))
7. 0.016 0.016 ↑ 1.0 1 4

Index Scan using jobs_pkey on jobs job (cost=0.29..7.03 rows=1 width=8) (actual time=0.004..0.004 rows=1 loops=4)

  • Index Cond: (id = task.job_id)
8. 0.016 0.016 ↑ 1.0 1 4

Index Scan using job_sets_pkey on job_sets "job->jobSet" (cost=0.29..0.35 rows=1 width=8) (actual time=0.004..0.004 rows=1 loops=4)

  • Index Cond: (id = job.job_set_id)
9. 0.010 0.043 ↑ 1.0 29 1

Hash (cost=3.71..3.71 rows=29 width=4) (actual time=0.043..0.043 rows=29 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 10kB
10. 0.033 0.033 ↑ 1.0 29 1

Seq Scan on test_suites "job->jobSet->testSuite" (cost=0.00..3.71 rows=29 width=4) (actual time=0.011..0.033 rows=29 loops=1)

  • Filter: (organization_id = 1)
  • Rows Removed by Filter: 108
Planning time : 1.142 ms
Execution time : 0.279 ms