explain.depesz.com

PostgreSQL's explain analyze made readable

Result: MUZo

Settings
# exclusive inclusive rows x rows loops node
1. 0.000 0.000 ↓ 0.0

Finalize GroupAggregate (cost=10,079,424.83..10,080,049.81 rows=5,219 width=49) (actual rows= loops=)

  • Group Key: profiles.id
  • Filter: (count(*) >= 1)
2. 0.000 0.000 ↓ 0.0

Gather Merge (cost=10,079,424.83..10,079,964.99 rows=4,350 width=49) (actual rows= loops=)

  • Workers Planned: 2
3. 0.000 0.000 ↓ 0.0

Partial GroupAggregate (cost=10,078,424.81..10,078,462.87 rows=2,175 width=49) (actual rows= loops=)

  • Group Key: profiles.id
4. 0.000 0.000 ↓ 0.0

Sort (cost=10,078,424.81..10,078,430.24 rows=2,175 width=41) (actual rows= loops=)

  • Sort Key: profiles.id
5. 0.000 0.000 ↓ 0.0

Nested Loop (cost=1,579,812.76..10,078,304.24 rows=2,175 width=41) (actual rows= loops=)

6. 0.000 0.000 ↓ 0.0

Hash Join (cost=1,579,812.07..9,736,897.20 rows=45,090 width=41) (actual rows= loops=)

  • Hash Cond: ((events.anonymous_id)::text = (profiles.anonymous_id)::text)
7. 0.000 0.000 ↓ 0.0

Parallel Bitmap Heap Scan on events (cost=124,097.76..8,249,047.87 rows=1,186,673 width=30) (actual rows= loops=)

  • Recheck Cond: ((site_id)::text = '5e55213d0d8cdf000726e813'::text)
  • Filter: ((type)::text = 'page'::text)
8. 0.000 0.000 ↓ 0.0

Bitmap Index Scan on site_id_idx (cost=0.00..123,385.75 rows=3,374,558 width=0) (actual rows= loops=)

  • Index Cond: ((site_id)::text = '5e55213d0d8cdf000726e813'::text)
9. 0.000 0.000 ↓ 0.0

Hash (cost=1,430,323.26..1,430,323.26 rows=1,007,765 width=77) (actual rows= loops=)

10. 0.000 0.000 ↓ 0.0

Bitmap Heap Scan on profiles (cost=20,030.24..1,430,323.26 rows=1,007,765 width=77) (actual rows= loops=)

  • Recheck Cond: ((arena_user_id IS NOT NULL) OR (user_id IS NOT NULL))
11. 0.000 0.000 ↓ 0.0

BitmapOr (cost=20,030.24..20,030.24 rows=1,008,715 width=0) (actual rows= loops=)

12. 0.000 0.000 ↓ 0.0

Bitmap Index Scan on arena_user_id_idx (cost=0.00..484.72 rows=25,638 width=0) (actual rows= loops=)

  • Index Cond: (arena_user_id IS NOT NULL)
13. 0.000 0.000 ↓ 0.0

Bitmap Index Scan on user_id_idx (cost=0.00..19,041.64 rows=983,077 width=0) (actual rows= loops=)

  • Index Cond: (user_id IS NOT NULL)
14. 0.000 0.000 ↓ 0.0

Index Only Scan using profile_site_pkey on profile_site (cost=0.69..7.57 rows=1 width=41) (actual rows= loops=)

  • Index Cond: ((id = (profiles.id)::text) AND (site_id = '5e55213d0d8cdf000726e813'::text))