explain.depesz.com

PostgreSQL's explain analyze made readable

Result: 3tfZ

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

Limit (cost=1.27..44.79 rows=20 width=17) (actual time=0.021..0.021 rows=0 loops=1)

2. 0.001 0.021 ↓ 0.0 0 1

Nested Loop (cost=1.27..1,933.85 rows=888 width=17) (actual time=0.021..0.021 rows=0 loops=1)

3. 0.000 0.020 ↓ 0.0 0 1

Nested Loop (cost=0.84..1,432.89 rows=1,112 width=26) (actual time=0.020..0.020 rows=0 loops=1)

4. 0.020 0.020 ↓ 0.0 0 1

Index Scan using ix_contacts_tags_company_id_tag on contacts_tags (cost=0.28..2.50 rows=1 width=26) (actual time=0.020..0.020 rows=0 loops=1)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (tag = 'tag'::text))
5. 0.000 0.000 ↓ 0.0 0

Index Only Scan using ix_contacts_tags_associations_company_id_tag_id_contact_id on contacts_tags_associations (cost=0.56..1,402.83 rows=2,756 width=39) (never executed)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (tag_id = contacts_tags.id))
  • Heap Fetches: 0
6. 0.000 0.000 ↓ 0.0 0

Index Only Scan using ix_company_id_id on contacts (cost=0.43..0.45 rows=1 width=26) (never executed)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (id = contacts_tags_associations.contact_id))
  • Heap Fetches: 0
Planning time : 1.220 ms
Execution time : 0.069 ms