explain.depesz.com

PostgreSQL's explain analyze made readable

Result: HKje

Settings
# exclusive inclusive rows x rows loops node
1. 0.006 0.161 ↓ 1.9 13 1

Group (cost=124.91..124.95 rows=7 width=8) (actual time=0.156..0.161 rows=13 loops=1)

  • Group Key: cc.business_id
2. 0.012 0.155 ↓ 2.9 20 1

Sort (cost=124.91..124.93 rows=7 width=8) (actual time=0.155..0.155 rows=20 loops=1)

  • Sort Key: cc.business_id
  • Sort Method: quicksort Memory: 25kB
3. 0.003 0.143 ↓ 2.9 20 1

Nested Loop (cost=1.13..124.82 rows=7 width=8) (actual time=0.022..0.143 rows=20 loops=1)

  • Join Filter: (ubl.user_id = bu.id)
4. 0.010 0.100 ↓ 2.9 20 1

Nested Loop (cost=0.85..121.97 rows=7 width=24) (actual time=0.015..0.100 rows=20 loops=1)

5. 0.012 0.050 ↓ 1.2 20 1

Nested Loop (cost=0.56..115.81 rows=16 width=32) (actual time=0.011..0.050 rows=20 loops=1)

6. 0.010 0.010 ↑ 1.0 14 1

Index Scan using idx_user_business_link_business_id on user_business_link ubl (cost=0.28..11.47 rows=14 width=8) (actual time=0.006..0.010 rows=14 loops=1)

  • Index Cond: (business_id = '1703858125129385245'::bigint)
7. 0.028 0.028 ↑ 1.0 1 14

Index Scan using idx_carrier_contact_user_id on carrier_contact cc (cost=0.28..7.44 rows=1 width=24) (actual time=0.002..0.002 rows=1 loops=14)

  • Index Cond: (user_id = ubl.user_id)
8. 0.040 0.040 ↑ 1.0 1 20

Index Scan using carrier_contact_business_pkey on carrier_contact_business ccb (cost=0.28..0.37 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=20)

  • Index Cond: (id = cc.carrier_contact_business_id)
  • Filter: (network_type = 4800)
9. 0.040 0.040 ↑ 1.0 1 20

Index Only Scan using idx_business_user_id on business_user bu (cost=0.28..0.39 rows=1 width=8) (actual time=0.002..0.002 rows=1 loops=20)

  • Index Cond: (id = cc.user_id)
  • Heap Fetches: 20