explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 2Lo

Settings
# exclusive inclusive rows x rows loops node
1. 476.523 1,872.191 ↓ 2.9 340,256 1

Seq Scan on sp_albums (cost=0.00..3,568,154.84 rows=116,303 width=23) (actual time=0.165..1,872.191 rows=340,256 loops=1)

  • Filter: ((SubPlan 1) > 0)
  • Rows Removed by Filter: 8,661
2.          

SubPlan (for Seq Scan)

3. 348.917 1,395.668 ↑ 1.0 1 348,917

Aggregate (cost=10.18..10.19 rows=1 width=8) (actual time=0.004..0.004 rows=1 loops=348,917)

4. 1,046.751 1,046.751 ↑ 2.0 1 348,917

Index Only Scan using index_sp_tracks_on_sp_album_id on sp_tracks (cost=0.42..10.18 rows=2 width=0) (actual time=0.003..0.003 rows=1 loops=348,917)

  • Index Cond: (sp_album_id = sp_albums.id)
  • Heap Fetches: 403,293
Planning time : 0.179 ms
Execution time : 1,895.269 ms