explain.depesz.com

PostgreSQL's explain analyze made readable

Result: Pjsj

Settings
# exclusive inclusive rows x rows loops node
1. 0.003 0.327 ↑ 1.0 20 1

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

2. 0.018 0.324 ↑ 44.4 20 1

Nested Loop (cost=1.27..1,933.85 rows=888 width=17) (actual time=0.143..0.324 rows=20 loops=1)

3. 0.008 0.126 ↑ 55.6 20 1

Nested Loop (cost=0.84..1,432.89 rows=1,112 width=26) (actual time=0.108..0.126 rows=20 loops=1)

4. 0.043 0.043 ↑ 1.0 1 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.043..0.043 rows=1 loops=1)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (tag = '00_bulk_131'::text))
5. 0.075 0.075 ↑ 137.8 20 1

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 time=0.061..0.075 rows=20 loops=1)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (tag_id = contacts_tags.id))
  • Heap Fetches: 20
6. 0.180 0.180 ↑ 1.0 1 20

Index Only Scan using ix_company_id_id on contacts (cost=0.43..0.45 rows=1 width=26) (actual time=0.009..0.009 rows=1 loops=20)

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