explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Lfc0

Settings
# exclusive inclusive rows x rows loops node
1. 0.001 0.231 ↓ 0.0 0 1

Limit (cost=3,746.35..3,749.11 rows=1 width=4) (actual time=0.231..0.231 rows=0 loops=1)

  • Buffers: shared hit=1
2. 0.001 0.230 ↓ 0.0 0 1

Hash Join (cost=3,746.35..3,749.11 rows=1 width=4) (actual time=0.230..0.230 rows=0 loops=1)

  • Hash Cond: (projects.id = ci_job_artifacts.project_id)
  • Buffers: shared hit=1
3. 0.000 0.000 ↓ 0.0 0

HashAggregate (cost=3,575.86..3,577.86 rows=200 width=4) (never executed)

  • Group Key: projects.id
4. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=3,464.90..3,572.66 rows=1,280 width=4) (never executed)

  • Hash Cond: (projects.namespace_id = gitlab_secondary_namespaces.id)
5. 0.000 0.000 ↓ 0.0 0

Foreign Scan on projects (cost=100.00..186.80 rows=2,560 width=8) (never executed)

6. 0.000 0.000 ↓ 0.0 0

Hash (cost=3,362.40..3,362.40 rows=200 width=4) (never executed)

7. 0.000 0.000 ↓ 0.0 0

HashAggregate (cost=3,360.40..3,362.40 rows=200 width=4) (never executed)

  • Group Key: gitlab_secondary_namespaces.id
8. 0.000 0.000 ↓ 0.0 0

CTE Scan on base_and_descendants gitlab_secondary_namespaces (cost=2,735.91..3,120.21 rows=19,215 width=4) (never executed)

9.          

CTE base_and_descendants

10. 0.000 0.000 ↓ 0.0 0

Recursive Union (cost=100.00..2,735.91 rows=19,215 width=4) (never executed)

11. 0.000 0.000 ↓ 0.0 0

Foreign Scan on geo_node_namespace_links (cost=100.00..146.86 rows=15 width=4) (never executed)

12. 0.000 0.000 ↓ 0.0 0

Hash Join (cost=104.88..220.47 rows=1,920 width=4) (never executed)

  • Hash Cond: (namespaces.parent_id = base_and_descendants.id)
13. 0.000 0.000 ↓ 0.0 0

Foreign Scan on namespaces (cost=100.00..186.80 rows=2,560 width=8) (never executed)

14. 0.000 0.000 ↓ 0.0 0

Hash (cost=3.00..3.00 rows=150 width=4) (never executed)

15. 0.000 0.000 ↓ 0.0 0

WorkTable Scan on base_and_descendants (cost=0.00..3.00 rows=150 width=4) (never executed)

16. 0.000 0.229 ↓ 0.0 0 1

Hash (cost=170.48..170.48 rows=1 width=8) (actual time=0.229..0.229 rows=0 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 8kB
  • Buffers: shared hit=1
17. 0.007 0.229 ↓ 0.0 0 1

Hash Right Join (cost=148.69..170.48 rows=1 width=8) (actual time=0.228..0.229 rows=0 loops=1)

  • Hash Cond: (job_artifact_registry.artifact_id = ci_job_artifacts.id)
  • Filter: (job_artifact_registry.id IS NULL)
  • Rows Removed by Filter: 8
  • Buffers: shared hit=1
18. 0.005 0.005 ↑ 103.8 8 1

Seq Scan on job_artifact_registry (cost=0.00..18.30 rows=830 width=8) (actual time=0.004..0.005 rows=8 loops=1)

  • Buffers: shared hit=1
19. 0.003 0.217 ↑ 1.1 8 1

Hash (cost=148.58..148.58 rows=9 width=8) (actual time=0.217..0.217 rows=8 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 9kB
20. 0.214 0.214 ↑ 1.1 8 1

Foreign Scan on ci_job_artifacts (cost=100.00..148.58 rows=9 width=8) (actual time=0.213..0.214 rows=8 loops=1)

Planning time : 0.312 ms
Execution time : 0.490 ms