explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Sh2f

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 0.408 ↓ 1.1 30 1

Limit (cost=0.84..102.98 rows=28 width=17) (actual time=0.071..0.408 rows=30 loops=1)

2. 0.030 0.405 ↓ 1.1 30 1

Nested Loop (cost=0.84..102.98 rows=28 width=17) (actual time=0.071..0.405 rows=30 loops=1)

3. 0.075 0.075 ↑ 1.1 30 1

Index Scan using ix_company_id_user_id on contacts_importance (cost=0.42..18.26 rows=32 width=26) (actual time=0.049..0.075 rows=30 loops=1)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (user_id = '\x4c21187154397f270a000001'::bytea) AND (is_important = true))
  • Filter: (is_important IS TRUE)
4. 0.300 0.300 ↑ 1.0 1 30

Index Only Scan using contacts_pkey on contacts (cost=0.43..2.65 rows=1 width=26) (actual time=0.010..0.010 rows=1 loops=30)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (id = contacts_importance.contact_id))
  • Heap Fetches: 30
Planning time : 0.694 ms
Execution time : 0.467 ms