explain.depesz.com

PostgreSQL's explain analyze made readable

Result: PkEU5

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

Limit (cost=2,489.57..26,003.47 rows=1 width=17) (actual rows= loops=)

2. 0.000 0.000 ↓ 0.0

Gather (cost=2,489.57..26,003.47 rows=1 width=17) (actual rows= loops=)

  • Workers Planned: 2
3. 0.000 0.000 ↓ 0.0

Merge Left Join (cost=1,489.57..25,003.37 rows=1 width=17) (actual rows= loops=)

  • Merge Cond: (contacts.id = contacts_tags_associations.contact_id)
  • Join Filter: (contacts_tags_associations.company_id = contacts.company_id)
  • Filter: (contacts_tags.tag IS NULL)
4. 0.000 0.000 ↓ 0.0

Parallel Index Only Scan using ix_company_id_id on contacts (cost=0.43..22,418.03 rows=434,402 width=26) (actual rows= loops=)

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

Sort (cost=1,489.15..1,491.93 rows=1,112 width=47) (actual rows= loops=)

  • Sort Key: contacts_tags_associations.contact_id
6. 0.000 0.000 ↓ 0.0

Nested Loop (cost=0.84..1,432.89 rows=1,112 width=47) (actual rows= loops=)

7. 0.000 0.000 ↓ 0.0

Index Scan using ix_contacts_tags_company_id_tag on contacts_tags (cost=0.28..2.50 rows=1 width=47) (actual rows= loops=)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (tag = '00_bulk_131'::text))
8. 0.000 0.000 ↓ 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) (actual rows= loops=)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (tag_id = contacts_tags.id))