explain.depesz.com

PostgreSQL's explain analyze made readable

Result: rEGK

Settings
# exclusive inclusive rows x rows loops node
1. 245.551 526.987 ↑ 1.0 753 1

HashAggregate (cost=8,623.35..8,630.92 rows=757 width=99) (actual time=526.793..526.987 rows=753 loops=1)

  • Group Key: card.id
2. 228.378 281.436 ↓ 4.6 890,723 1

Hash Join (cost=4,496.83..7,663.30 rows=192,010 width=95) (actual time=29.186..281.436 rows=890,723 loops=1)

  • Hash Cond: (post_to_tag_link_1.tag_id = tag.id)
3. 18.479 49.104 ↑ 1.0 32,633 1

Hash Join (cost=4,385.07..5,305.10 rows=32,633 width=8) (actual time=25.209..49.104 rows=32,633 loops=1)

  • Hash Cond: (post_to_tag_link_1.post_id = post.id)
4. 5.728 5.728 ↑ 1.0 32,633 1

Seq Scan on post_to_tag_link post_to_tag_link_1 (cost=0.00..471.33 rows=32,633 width=8) (actual time=0.016..5.728 rows=32,633 loops=1)

5. 9.726 24.897 ↑ 1.0 24,492 1

Hash (cost=4,078.92..4,078.92 rows=24,492 width=4) (actual time=24.897..24.897 rows=24,492 loops=1)

  • Buckets: 32768 Batches: 1 Memory Usage: 1118kB
6. 15.171 15.171 ↑ 1.0 24,492 1

Seq Scan on post (cost=0.00..4,078.92 rows=24,492 width=4) (actual time=0.028..15.171 rows=24,492 loops=1)

7. 0.898 3.954 ↑ 1.0 1,318 1

Hash (cost=95.29..95.29 rows=1,318 width=99) (actual time=3.954..3.954 rows=1,318 loops=1)

  • Buckets: 2048 Batches: 1 Memory Usage: 196kB
8. 0.760 3.056 ↑ 1.0 1,318 1

Hash Join (cost=40.07..95.29 rows=1,318 width=99) (actual time=1.186..3.056 rows=1,318 loops=1)

  • Hash Cond: (card_to_tag_link_1.tag_id = tag.id)
9. 0.890 2.085 ↑ 1.0 1,318 1

Hash Join (cost=30.03..67.12 rows=1,318 width=95) (actual time=0.940..2.085 rows=1,318 loops=1)

  • Hash Cond: (card_to_tag_link_1.card_id = card.id)
10. 0.323 0.323 ↑ 1.0 1,318 1

Seq Scan on card_to_tag_link card_to_tag_link_1 (cost=0.00..19.18 rows=1,318 width=8) (actual time=0.015..0.323 rows=1,318 loops=1)

11. 0.506 0.872 ↑ 1.0 757 1

Hash (cost=20.57..20.57 rows=757 width=91) (actual time=0.872..0.872 rows=757 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 104kB
12. 0.366 0.366 ↑ 1.0 757 1

Seq Scan on card (cost=0.00..20.57 rows=757 width=91) (actual time=0.013..0.366 rows=757 loops=1)

13. 0.089 0.211 ↑ 1.0 224 1

Hash (cost=7.24..7.24 rows=224 width=4) (actual time=0.211..0.211 rows=224 loops=1)

  • Buckets: 1024 Batches: 1 Memory Usage: 16kB
14. 0.122 0.122 ↑ 1.0 224 1

Seq Scan on tag (cost=0.00..7.24 rows=224 width=4) (actual time=0.014..0.122 rows=224 loops=1)