explain.depesz.com

PostgreSQL's explain analyze made readable

Result: SBiF

Settings
# exclusive inclusive rows x rows loops node
1. 0.029 0.052 ↓ 1.6 16 1

Seq Scan on items (cost=4.95..20.70 rows=10 width=325) (actual time=0.033..0.052 rows=16 loops=1)

  • Filter: ((deleted IS NOT TRUE) AND (tour_level <= $1))
  • Rows Removed by Filter: 16
2.          

CTE user_tour_level

3. 0.020 0.020 ↑ 1.0 1 1

Seq Scan on user_stats (cost=0.00..4.93 rows=1 width=4) (actual time=0.019..0.020 rows=1 loops=1)

  • Filter: (user_id = 244)
  • Rows Removed by Filter: 233
4.          

Initplan (forSeq Scan)

5. 0.023 0.023 ↑ 1.0 1 1

CTE Scan on user_tour_level (cost=0.00..0.02 rows=1 width=4) (actual time=0.022..0.023 rows=1 loops=1)