explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 7SI6

Settings

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.021 5.374 ↑ 10.1 10 1

Sort (cost=151.48..151.73 rows=101 width=88) (actual time=5.368..5.374 rows=10 loops=1)

  • Sort Key: (sum(t.all_points)) DESC
  • Sort Method: quicksort Memory: 26kB
2. 2.110 5.353 ↑ 10.1 10 1

HashAggregate (cost=147.10..148.11 rows=101 width=88) (actual time=5.343..5.353 rows=10 loops=1)

  • Group Key: t.bettle_id, m.member_id
3. 1.682 3.243 ↑ 1.0 2,132 1

Hash Join (cost=14.66..67.15 rows=2,132 width=54) (actual time=0.508..3.243 rows=2,132 loops=1)

  • Hash Cond: (t.member_id = cm.member_id)
4. 0.767 1.207 ↑ 1.0 520 1

Hash Join (cost=5.27..31.89 rows=520 width=70) (actual time=0.148..1.207 rows=520 loops=1)

  • Hash Cond: (t.member_id = m.member_id)
5. 0.305 0.305 ↑ 1.0 520 1

Seq Scan on tip t (cost=0.00..25.20 rows=520 width=54) (actual time=0.006..0.305 rows=520 loops=1)

6. 0.071 0.135 ↑ 1.0 101 1

Hash (cost=4.01..4.01 rows=101 width=16) (actual time=0.134..0.135 rows=101 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 13kB
7. 0.064 0.064 ↑ 1.0 101 1

Seq Scan on member m (cost=0.00..4.01 rows=101 width=16) (actual time=0.004..0.064 rows=101 loops=1)

8. 0.187 0.354 ↑ 1.0 284 1

Hash (cost=5.84..5.84 rows=284 width=16) (actual time=0.354..0.354 rows=284 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 22kB
9. 0.167 0.167 ↑ 1.0 284 1

Seq Scan on club_member cm (cost=0.00..5.84 rows=284 width=16) (actual time=0.004..0.167 rows=284 loops=1)

Planning time : 0.408 ms
Execution time : 5.457 ms