explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 1fnn

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 9,643.857 ↑ 1.0 12 1

Limit (cost=1.14..323.62 rows=12 width=108) (actual time=9,643.404..9,643.857 rows=12 loops=1)

2. 0.013 9,643.854 ↑ 6,413.5 12 1

Nested Loop (cost=1.14..2,068,218.00 rows=76,962 width=108) (actual time=9,643.403..9,643.854 rows=12 loops=1)

3. 0.011 9,643.829 ↑ 6,413.5 12 1

Nested Loop (cost=0.86..2,045,696.58 rows=76,962 width=101) (actual time=9,643.396..9,643.829 rows=12 loops=1)

4. 9,643.530 9,643.530 ↑ 104,476.6 12 1

Index Scan Backward using pk_process on process p (cost=0.44..1,181,314.44 rows=1,253,719 width=48) (actual time=9,643.360..9,643.530 rows=12 loops=1)

  • Filter: (process_template_id = ANY ('{89,112}'::bigint[]))
  • Rows Removed by Filter: 17556652
5. 0.288 0.288 ↑ 1.0 1 12

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

  • 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)