explain.depesz.com

PostgreSQL's explain analyze made readable

Result: s9uh : Optimization for: Optimization for: Optimization for: Optimization for: plan #Ubpe; plan #Bs5n; plan #lhL5; plan #AB8

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.008 0.071 ↑ 1.0 2 1

Sort (cost=8.69..8.7 rows=2 width=129) (actual time=0.07..0.071 rows=2 loops=1)

  • Sort Key: sp.id
  • Sort Method: quicksort Memory: 25kB
2. 0.008 0.063 ↑ 1.0 2 1

Nested Loop (cost=1.17..8.68 rows=2 width=129) (actual time=0.046..0.063 rows=2 loops=1)

3. 0.003 0.039 ↑ 1.0 2 1

Nested Loop (cost=0..6.25 rows=2 width=156) (actual time=0.03..0.039 rows=2 loops=1)

4. 0.012 0.012 ↑ 1.0 2 1

Seq Scan on step_participations sp (cost=0..1.16 rows=2 width=115) (actual time=0.011..0.012 rows=2 loops=1)

  • Filter: ((type)::text = 'StepParticipations::TodoParticipation'::text)
5. 0.004 0.024 ↑ 1.0 1 2

Aggregate (cost=0..2.52 rows=1 width=45) (actual time=0.012..0.012 rows=1 loops=2)

6. 0.004 0.020 ↓ 2.0 2 2

Nested Loop (cost=0..2.51 rows=1 width=41) (actual time=0.008..0.01 rows=2 loops=2)

7. 0.010 0.010 ↑ 1.0 1 2

Seq Scan on step_definitions sd (cost=0..1.25 rows=1 width=37) (actual time=0.004..0.005 rows=1 loops=2)

  • Filter: (id = sp.step_definition_id)
8. 0.006 0.006 ↓ 2.0 2 2

Seq Scan on step_definitions sdc (cost=0..1.25 rows=1 width=8) (actual time=0.002..0.003 rows=2 loops=2)

  • Filter: (parent_step_id = sp.step_definition_id)
9. 0.006 0.016 ↑ 1.0 1 2

Aggregate (cost=1.17..1.18 rows=1 width=16) (actual time=0.008..0.008 rows=1 loops=2)

10. 0.002 0.010 ↓ 2.0 2 2

Result (cost=0..1.16 rows=1 width=12) (actual time=0.004..0.005 rows=2 loops=2)

11. 0.008 0.008 ↓ 2.0 2 2

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

  • Filter: ((completed_at IS NOT NULL) AND (deleted_at IS NULL) AND (participant_id IS NOT NULL) AND (sp.id = activated_participation_id))
Planning time : 0.535 ms
Execution time : 0.247 ms