explain.depesz.com

PostgreSQL's explain analyze made readable

Result: CSwu

Settings
# exclusive inclusive rows x rows loops node
1. 0.007 0.130 ↓ 2.0 2 1

Nested Loop (cost=30.08..34.3 rows=1 width=129) (actual time=0.128..0.13 rows=2 loops=1)

2. 0.007 0.048 ↑ 1.0 3 1

Aggregate (cost=2.46..2.52 rows=3 width=16) (actual time=0.045..0.048 rows=3 loops=1)

3. 0.007 0.041 ↓ 1.7 5 1

Sort (cost=2.46..2.47 rows=3 width=12) (actual time=0.039..0.041 rows=5 loops=1)

  • Sort Key: sp_1.id, spc.participant_id
  • Sort Method: quicksort Memory: 25kB
4. 0.014 0.034 ↓ 1.7 5 1

Hash Join (cost=1.19..2.43 rows=3 width=12) (actual time=0.03..0.034 rows=5 loops=1)

5. 0.010 0.010 ↑ 1.0 13 1

Seq Scan on step_participations sp_1 (cost=0..1.13 rows=13 width=4) (actual time=0.009..0.01 rows=13 loops=1)

  • Filter: (deleted_at IS NULL)
6. 0.005 0.010 ↑ 1.0 5 1

Hash (cost=1.13..1.13 rows=5 width=12) (actual time=0.01..0.01 rows=5 loops=1)

7. 0.005 0.005 ↑ 1.0 5 1

Seq Scan on step_participations spc (cost=0..1.13 rows=5 width=12) (actual time=0.003..0.005 rows=5 loops=1)

  • Filter: ((completed_at IS NOT NULL) AND (deleted_at IS NULL) AND (participant_id IS NOT NULL))
8. 0.007 0.075 ↑ 1.0 2 3

Materialize (cost=27.62..31.65 rows=2 width=148) (actual time=0.023..0.025 rows=2 loops=3)

9. 0.016 0.068 ↑ 1.0 2 1

Hash Join (cost=27.62..31.64 rows=2 width=148) (actual time=0.066..0.068 rows=2 loops=1)

10. 0.012 0.045 ↑ 22.9 7 1

Aggregate (cost=26.43..28.03 rows=160 width=45) (actual time=0.043..0.045 rows=7 loops=1)

11. 0.015 0.033 ↑ 12.3 13 1

Hash Join (cost=13.6..25.63 rows=160 width=41) (actual time=0.028..0.033 rows=13 loops=1)

12. 0.005 0.005 ↑ 8.0 20 1

Seq Scan on step_definitions sdc (cost=0..11.6 rows=160 width=8) (actual time=0.004..0.005 rows=20 loops=1)

13. 0.003 0.013 ↑ 8.0 20 1

Hash (cost=11.6..11.6 rows=160 width=37) (actual time=0.013..0.013 rows=20 loops=1)

14. 0.010 0.010 ↑ 8.0 20 1

Seq Scan on step_definitions sd (cost=0..11.6 rows=160 width=37) (actual time=0.003..0.01 rows=20 loops=1)

15. 0.003 0.007 ↑ 1.0 2 1

Hash (cost=1.16..1.16 rows=2 width=107) (actual time=0.007..0.007 rows=2 loops=1)

16. 0.004 0.004 ↑ 1.0 2 1

Seq Scan on step_participations sp (cost=0..1.16 rows=2 width=107) (actual time=0.004..0.004 rows=2 loops=1)

  • Filter: ((type)::text = 'StepParticipations::TodoParticipation'::text)
Planning time : 0.561 ms
Execution time : 0.232 ms