explain.depesz.com

PostgreSQL's explain analyze made readable

Result: M5CT

Settings
# exclusive inclusive rows x rows loops node
1. 20.914 138.312 ↑ 1.0 5,802 1

Limit (cost=20.46..122,736.92 rows=5,802 width=212) (actual time=20.202..138.312 rows=5,802 loops=1)

  • Functions: 17
  • Options: Inlining false, Optimization false, Expressions true, Deforming true
  • Timing: Generation 2.811 ms, Inlining 0.000 ms, Optimization 1.087 ms, Emission 18.433 ms, Total 22.332 ms
2. 2.420 117.398 ↑ 1.0 5,802 1

Nested Loop Left Join (cost=20.46..122,736.92 rows=5,802 width=212) (actual time=0.170..117.398 rows=5,802 loops=1)

3. 3.515 56.958 ↑ 1.0 5,802 1

Nested Loop (cost=0.15..4,723.43 rows=5,802 width=202) (actual time=0.094..56.958 rows=5,802 loops=1)

4. 41.839 41.839 ↑ 1.0 5,802 1

Seq Scan on stocks s (cost=0.00..3,703.82 rows=5,802 width=134) (actual time=0.064..41.839 rows=5,802 loops=1)

  • Filter: (orientation = 'Supplier'::text)
  • Rows Removed by Filter: 62
5. 11.604 11.604 ↑ 1.0 1 5,802

Index Scan using steps_actions_pkey on steps_actions sa (cost=0.15..0.18 rows=1 width=76) (actual time=0.002..0.002 rows=1 loops=5,802)

  • Index Cond: (id = s.step_action_id)
6. 46.416 58.020 ↑ 1.0 1 5,802

Aggregate (cost=20.31..20.32 rows=1 width=32) (actual time=0.010..0.010 rows=1 loops=5,802)

7. 5.802 11.604 ↑ 10.0 1 5,802

Bitmap Heap Scan on ref_stock_statuses status (cost=9.60..20.26 rows=10 width=40) (actual time=0.002..0.002 rows=1 loops=5,802)

  • Recheck Cond: (id = ANY (s.statuses))
  • Heap Blocks: exact=4,132
8. 5.802 5.802 ↑ 10.0 1 5,802

Bitmap Index Scan on ref_stock_statuses_pkey (cost=0.00..9.60 rows=10 width=0) (actual time=0.001..0.001 rows=1 loops=5,802)

  • Index Cond: (id = ANY (s.statuses))
Execution time : 141.939 ms