explain.depesz.com

PostgreSQL's explain analyze made readable

Result: QSac

Settings
# exclusive inclusive rows x rows loops node
1. 0.029 382.848 ↑ 1.0 1 1

Aggregate (cost=77.62..77.63 rows=1 width=8) (actual time=382.848..382.848 rows=1 loops=1)

  • Buffers: shared hit=81 read=138 dirtied=20
  • I/O Timings: read=359.736
2. 0.373 382.819 ↓ 0.0 0 1

Nested Loop (cost=1.00..77.62 rows=1 width=4) (actual time=382.818..382.819 rows=0 loops=1)

  • Buffers: shared hit=81 read=138 dirtied=20
  • I/O Timings: read=359.736
3. 60.778 60.778 ↓ 1.9 29 1

Index Scan using idx_security_scans_on_scan_type on public.security_scans (cost=0.43..23.49 rows=15 width=8) (actual time=15.464..60.778 rows=29 loops=1)

  • Index Cond: (security_scans.scan_type = 6)
  • Buffers: shared hit=3 read=32 dirtied=4
  • I/O Timings: read=53.700
4. 321.668 321.668 ↓ 0.0 0 29

Index Scan using ci_builds_pkey on public.ci_builds (cost=0.57..3.61 rows=1 width=8) (actual time=11.092..11.092 rows=0 loops=29)

  • Index Cond: (ci_builds.id = security_scans.build_id)
  • Filter: (((NOT ci_builds.retried) OR (ci_builds.retried IS NULL)) AND (ci_builds.created_at >= '2020-06-29 07:12:50.845315'::timestamp without time zone) AND (ci_builds.created_at <= '2020-07-27 07:12:50.845435'::timestamp without time zone) AND (ci_builds.commit_id >= 1) AND (ci_builds.commit_id <= 10,000) AND ((ci_builds.type)::text = 'Ci::Build'::text) AND ((ci_builds.status)::text = 'success'::text))
  • Rows Removed by Filter: 1
  • Buffers: shared hit=78 read=106 dirtied=16
  • I/O Timings: read=306.036