explain.depesz.com

PostgreSQL's explain analyze made readable

Result: hE9w

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 1.161 ↑ 1.0 12 1

Limit (cost=1.14..323.60 rows=12 width=108) (actual time=0.930..1.161 rows=12 loops=1)

2. 0.012 1.158 ↑ 6,413.5 12 1

Nested Loop (cost=1.14..2,068,069.78 rows=76,962 width=108) (actual time=0.929..1.158 rows=12 loops=1)

3. 0.000 1.134 ↑ 6,413.5 12 1

Nested Loop (cost=0.86..2,045,548.36 rows=76,962 width=101) (actual time=0.920..1.134 rows=12 loops=1)

4. 0.793 0.793 ↑ 2,836.4 442 1

Index Scan using pk_process on process p (cost=0.44..1,181,266.50 rows=1,253,692 width=48) (actual time=0.587..0.793 rows=442 loops=1)

  • Filter: (process_template_id = ANY ('{89,112}'::bigint[]))
  • Rows Removed by Filter: 1584
5. 0.442 0.442 ↓ 0.0 0 442

Index Scan using idx_entity_uuid on entity e (cost=0.43..0.68 rows=1 width=69) (actual time=0.001..0.001 rows=0 loops=442)

  • Index Cond: (id_uuid = p.filler_id_uuid)
6. 0.012 0.012 ↑ 1.0 1 12

Index Scan using pk_workflow_state on workflow_state ws (cost=0.28..0.29 rows=1 width=23) (actual time=0.001..0.001 rows=1 loops=12)

  • Index Cond: (id = p.workflow_state_id)