explain.depesz.com

PostgreSQL's explain analyze made readable

Result: KTdL

Settings
# exclusive inclusive rows x rows loops node
1. 0.014 1.061 ↑ 7.2 123 1

Limit (cost=1.27..1,933.85 rows=888 width=17) (actual time=0.119..1.061 rows=123 loops=1)

2. 0.107 1.047 ↑ 7.2 123 1

Nested Loop (cost=1.27..1,933.85 rows=888 width=17) (actual time=0.118..1.047 rows=123 loops=1)

3. 0.022 0.202 ↑ 9.0 123 1

Nested Loop (cost=0.84..1,432.89 rows=1,112 width=26) (actual time=0.084..0.202 rows=123 loops=1)

4. 0.026 0.026 ↑ 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.025..0.026 rows=1 loops=1)

  • Index Cond: ((company_id = '\x4c2118ad54397f271b000000'::bytea) AND (tag = '00_bulk_131'::text))
5. 0.154 0.154 ↑ 22.4 123 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.054..0.154 rows=123 loops=1)

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

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

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