explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Armj

Settings
# exclusive inclusive rows x rows loops node
1. 27.679 65.005 ↓ 0.0 0 1

Hash Join (cost=1,060.83..1,834.44 rows=55 width=56) (actual time=64.998..65.005 rows=0 loops=1)

  • Hash Cond: (dc.default_type = uv.default_type)
  • Join Filter: ((NOT (SubPlan 2)) OR (dc.status <> (SubPlan 3)))
  • Rows Removed by Join Filter: 196
2.          

CTE user_views

3. 1.166 1.166 ↑ 1.2 11 1

Seq Scan on client_view c (cost=0.00..1,060.40 rows=13 width=12) (actual time=0.079..1.166 rows=11 loops=1)

  • Filter: ((user_id = '1693876180748338218'::bigint) AND (status = 7401))
  • Rows Removed by Filter: 2416
4. 3.907 3.907 ↑ 1.8 463 1

Seq Scan on default_cols dc (cost=0.00..18.50 rows=850 width=52) (actual time=0.017..3.907 rows=463 loops=1)

5. 0.108 1.471 ↑ 1.2 11 1

Hash (cost=0.26..0.26 rows=13 width=12) (actual time=1.463..1.471 rows=11 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
6. 1.363 1.363 ↑ 1.2 11 1

CTE Scan on user_views uv (cost=0.00..0.26 rows=13 width=12) (actual time=0.096..1.363 rows=11 loops=1)

7.          

SubPlan (forHash Join)

8. 21.168 21.168 ↑ 1.8 12 196

Index Scan using idx_viewable_column_client_view_id on viewable_column vc (cost=0.29..8.96 rows=21 width=11) (actual time=0.012..0.108 rows=12 loops=196)

  • Index Cond: (client_view_id = uv.id)
9. 6.468 10.780 ↑ 1.0 1 196

Limit (cost=0.29..9.01 rows=1 width=4) (actual time=0.031..0.055 rows=1 loops=196)

10. 4.312 4.312 ↑ 1.0 1 196

Index Scan using idx_viewable_column_client_view_id on viewable_column vc_1 (cost=0.29..9.01 rows=1 width=4) (actual time=0.014..0.022 rows=1 loops=196)

  • Index Cond: (client_view_id = uv.id)
  • Filter: (dc.display_name = display_name)
  • Rows Removed by Filter: 11