explain.depesz.com

PostgreSQL's explain analyze made readable

Result: kJsG : w index

Settings
# exclusive inclusive rows x rows loops node
1. 0.006 0.515 ↓ 1.1 30 1

Planning time: 0.780 msLimit (cost=0.84..102.98 rows=28 width=17) (actual time=0.107..0.515 rows=30 loops=1)

2. 0.040 0.509 ↓ 1.1 30 1

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

3. 0.360 0.360 ↑ 1.0 1 30

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

4. 0.109 0.109 ↑ 1.1 30 1

Index Only Scan using contacts_importance_company_id_user_id_is_important_contact_id on contacts_importance contacts_importance_1 (cost=0.42..18.26 rows=32 width=26) (actual time=0.066..0.109 rows=30 loops=1)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (user_id = '\x4c21187154397f270a000001'::bytea) AND (is_important = true))
  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (id = contacts_importance_1.contact_id))
  • Heap Fetches: 30
  • Heap Fetches: 30
  • Filter: (is_important IS TRUE)
Execution time : 0.585 ms