explain.depesz.com

PostgreSQL's explain analyze made readable

Result: cSzU

Settings
# exclusive inclusive rows x rows loops node
1. 49,639.039 49,639.039 ↓ 0.0 0 1

Index Scan using index_ci_pipelines_on_project_idandrefandiddesc on public.ci_pipelines (cost=125,027.55..249,654.24 rows=25,686 width=312) (actual time=49,639.039..49,639.039 rows=0 loops=1)

  • Index Cond: ((ci_pipelines.project_id = 278,964) AND ((ci_pipelines.ref)::text = 'master'::text) AND (ci_pipelines.id < 159932257))
  • Filter: ((NOT ci_pipelines.tag) AND ci_pipelines.artifacts_locked AND (NOT (hashed SubPlan 2)))
  • Rows Removed by Filter: 34,415
  • Buffers: shared hit=4,139 read=30,345 dirtied=479
  • I/O Timings: read=49,002.759
2.          

SubPlan (for Index Scan)

3. 0.000 0.000 ↓ 0.0 0 0

Index Scan using index_ci_pipelines_on_project_idandrefandiddesc on public.ci_pipelines ci_pipelines_2 (cost=7.69..124,898.55 rows=51,372 width=4) (actual time=0.000..0.000 rows=0 loops=0)

  • Index Cond: ((ci_pipelines_2.project_id = 278,964) AND ((ci_pipelines_2.ref)::text = 'master'::text) AND (ci_pipelines_2.id < 159932257))
  • Filter: ((NOT ci_pipelines_2.tag) AND ((ci_pipelines_2.id = 159,932,257) OR (hashed SubPlan 1)))
  • Rows Removed by Filter: 0
4.          

SubPlan (for Index Scan)

5. 0.000 0.000 ↓ 0.0 0 0

Nested Loop (cost=1.00..7.11 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=0)

6. 0.000 0.000 ↓ 0.0 0 0

Index Scan using index_ci_sources_pipelines_on_source_pipeline_id on public.ci_sources_pipelines (cost=0.43..3.53 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=0)

  • Index Cond: (ci_sources_pipelines.source_pipeline_id = 159,932,257)
  • Filter: (ci_sources_pipelines.source_project_id = ci_sources_pipelines.project_id)
  • Rows Removed by Filter: 0
7. 0.000 0.000 ↓ 0.0 0 0

Index Only Scan using ci_pipelines_pkey on public.ci_pipelines ci_pipelines_1 (cost=0.57..3.59 rows=1 width=4) (actual time=0.000..0.000 rows=0 loops=0)

  • Index Cond: (ci_pipelines_1.id = ci_sources_pipelines.pipeline_id)
  • Heap Fetches: 0