explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Z3RW

Settings
# exclusive inclusive rows x rows loops node
1. 20.846 126.463 ↑ 1.0 5,637 1

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

  • Functions: 17
  • Options: Inlining false, Optimization false, Expressions true, Deforming true
  • Timing: Generation 1.913 ms, Inlining 0.000 ms, Optimization 0.945 ms, Emission 18.606 ms, Total 21.463 ms
2. 2.236 105.617 ↑ 1.0 5,637 1

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

3. 6.178 52.648 ↑ 1.0 5,637 1

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

4. 40.833 40.833 ↑ 1.0 5,637 1

Seq Scan on stocks s (cost=0.00..3,687.10 rows=5,637 width=134) (actual time=0.131..40.833 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. 39.459 50.733 ↑ 1.0 1 5,637

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

7. 5.637 11.274 ↑ 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.002 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 : 176.233 ms