explain.depesz.com

PostgreSQL's explain analyze made readable

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

Settings

Optimization path:

Optimization(s) for this plan:

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

Sort (cost=44.02..44.02 rows=2 width=129) (actual time=0.071..0.071 rows=2 loops=1)

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

Nested Loop (cost=1.31..44.01 rows=2 width=129) (actual time=0.047..0.064 rows=2 loops=1)

3. 0.003 0.040 ↑ 1.0 2 1

Nested Loop (cost=0.14..41.58 rows=2 width=156) (actual time=0.031..0.04 rows=2 loops=1)

4. 0.011 0.011 ↑ 1.0 2 1

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

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

Aggregate (cost=0.14..20.19 rows=1 width=45) (actual time=0.013..0.013 rows=1 loops=2)

6. 0.006 0.020 ↓ 2.0 2 2

Nested Loop (cost=0.14..20.17 rows=1 width=41) (actual time=0.009..0.01 rows=2 loops=2)

7. 0.006 0.006 ↑ 1.0 1 2

Index Scan using step_definitions_pkey on step_definitions sd (cost=0.14..8.16 rows=1 width=37) (actual time=0.003..0.003 rows=1 loops=2)

  • Index Cond: (id = sp.step_definition_id)
8. 0.008 0.008 ↓ 2.0 2 2

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

  • Filter: (parent_step_id = sp.step_definition_id)
9. 0.004 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.012 ↓ 2.0 2 2

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

11. 0.010 0.010 ↓ 2.0 2 2

Seq Scan on step_participations spc (cost=0..1.16 rows=1 width=8) (actual time=0.004..0.005 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.322 ms
Execution time : 0.215 ms