explain.depesz.com

PostgreSQL's explain analyze made readable

Result: ZbVG : Is NOT

Settings
# exclusive inclusive rows x rows loops node
1. 0.009 201.283 ↓ 100.0 100 1

Limit (cost=2,488.42..26,027.32 rows=1 width=17) (actual time=47.723..201.283 rows=100 loops=1)

2. 185.746 201.274 ↓ 100.0 100 1

Gather (cost=2,488.42..26,027.32 rows=1 width=17) (actual time=47.723..201.274 rows=100 loops=1)

  • Workers Planned: 2
  • Workers Launched: 2
3. 0.014 15.528 ↓ 34.0 34 3 / 3

Merge Left Join (cost=1,488.42..25,027.22 rows=1 width=17) (actual time=15.504..15.528 rows=34 loops=3)

  • 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.188 0.188 ↑ 12,786.2 34 3 / 3

Parallel Index Only Scan using ix_company_id_id on contacts (cost=0.43..22,442.48 rows=434,732 width=26) (actual time=0.170..0.188 rows=34 loops=3)

  • Index Cond: (company_id = '\x4c2118ad54397f271b000000'::bytea)
  • Heap Fetches: 25
5. 0.185 15.326 ↑ 1,083.0 1 3 / 3

Sort (cost=1,487.99..1,490.70 rows=1,083 width=47) (actual time=15.326..15.326 rows=1 loops=3)

  • Sort Key: contacts_tags_associations.contact_id
  • Sort Method: quicksort Memory: 34kB
6. 0.044 15.141 ↑ 8.8 123 3 / 3

Nested Loop (cost=0.84..1,433.41 rows=1,083 width=47) (actual time=10.664..15.141 rows=123 loops=3)

7. 0.157 0.157 ↑ 1.0 1 3 / 3

Index Only Scan using ix_contacts_tags_company_id_tag_tag_id on contacts_tags (cost=0.28..2.50 rows=1 width=47) (actual time=0.157..0.157 rows=1 loops=3)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (tag = '00_bulk_131'::text))
  • Heap Fetches: 1
8. 14.940 14.940 ↑ 22.4 123 3 / 3

Index Only Scan using ix_contacts_tags_associations_company_id_tag_id_contact_id on contacts_tags_associations (cost=0.56..1,403.34 rows=2,757 width=39) (actual time=10.478..14.940 rows=123 loops=3)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (tag_id = contacts_tags.id))
  • Heap Fetches: 123
Planning time : 2.974 ms
Execution time : 201.487 ms