explain.depesz.com

PostgreSQL's explain analyze made readable

Result: orYB

Settings
# exclusive inclusive rows x rows loops node
1. 17.108 110.478 ↑ 1.0 5,637 1

Limit (cost=20.46..119,336.46 rows=5,637 width=212) (actual time=16.440..110.478 rows=5,637 loops=1)

  • Functions: 17
  • Options: Inlining false, Optimization false, Expressions true, Deforming true
  • Timing: Generation 1.906 ms, Inlining 0.000 ms, Optimization 0.769 ms, Emission 15.166 ms, Total 17.841 ms
2. 2.252 93.370 ↑ 1.0 5,637 1

Nested Loop Left Join (cost=20.46..119,336.46 rows=5,637 width=212) (actual time=0.134..93.370 rows=5,637 loops=1)

3. 5.185 46.022 ↑ 1.0 5,637 1

Nested Loop (cost=0.15..4,679.09 rows=5,637 width=202) (actual time=0.072..46.022 rows=5,637 loops=1)

4. 35.200 35.200 ↑ 1.0 5,637 1

Seq Scan on stocks s (cost=0.00..3,687.10 rows=5,637 width=134) (actual time=0.049..35.200 rows=5,637 loops=1)

  • Filter: (NOT is_deleted)
  • Rows Removed by Filter: 227
5. 5.637 5.637 ↑ 1.0 1 5,637

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

  • Index Cond: (id = s.step_action_id)
6. 28.185 45.096 ↑ 1.0 1 5,637

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

7. 11.274 16.911 ↑ 10.0 1 5,637

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

  • Recheck Cond: (id = ANY (s.statuses))
  • Heap Blocks: exact=3,964
8. 5.637 5.637 ↑ 10.0 1 5,637

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,637)

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