explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 5LNO

Settings
# exclusive inclusive rows x rows loops node
1. 0.011 0.080 ↓ 2.0 2 1

Nested Loop Anti Join (cost=0.29..6.14 rows=1 width=21) (actual time=0.049..0.080 rows=2 loops=1)

2. 0.007 0.059 ↓ 2.0 2 1

Nested Loop (cost=0.14..3.38 rows=1 width=4) (actual time=0.033..0.059 rows=2 loops=1)

3. 0.038 0.038 ↓ 2.0 2 1

Seq Scan on routes rs (cost=0.00..2.14 rows=1 width=4) (actual time=0.018..0.038 rows=2 loops=1)

  • Filter: (((path)::text ~~ 'gitlab-org/%'::text) AND ((source_type)::text = 'Project'::text))
  • Rows Removed by Filter: 79
4. 0.014 0.014 ↑ 1.0 1 2

Index Only Scan using idx_projects_on_repository_storage_last_repository_updated_at on projects (cost=0.14..1.16 rows=1 width=4) (actual time=0.007..0.007 rows=1 loops=2)

  • Index Cond: (id = rs.source_id)
  • Heap Fetches: 0
5. 0.004 0.004 ↓ 0.0 0 2

Index Only Scan using index_project_pages_metadata_on_project_id on project_pages_metadata (cost=0.15..0.63 rows=1 width=4) (actual time=0.002..0.002 rows=0 loops=2)

  • Index Cond: (project_id = projects.id)
  • Heap Fetches: 0
6.          

SubPlan (forNested Loop Anti Join)

7. 0.002 0.006 ↓ 0.0 0 2

Limit (cost=0.12..2.12 rows=1 width=1) (actual time=0.003..0.003 rows=0 loops=2)

8. 0.004 0.004 ↓ 0.0 0 2

Index Only Scan using index_ci_builds_on_project_id_for_successfull_pages_deploy on ci_builds (cost=0.12..2.12 rows=1 width=1) (actual time=0.002..0.002 rows=0 loops=2)

  • Index Cond: (project_id = projects.id)
  • Heap Fetches: 0
Planning time : 2.010 ms
Execution time : 0.155 ms