QUERY PLAN
Sort (cost=206.16..206.17 rows=4 width=96)
Sort Key: pt.id
-> Hash Left Join (cost=96.32..206.12 rows=4 width=96)
Hash Cond: (pt.taxonomy_id = tt.id)
-> Bitmap Heap Scan on tbl_term_taxonomy_relationships pt (cost=86.20..195.99 rows=4 width=51)
Recheck Cond: ((object_id = ANY ('{7350,7347,7348,7354,7355,7353,7352,7351,7346,7345,7344,7343,7342,7341,7340,7339,7338,7337,7336,7335}'::integer[])) AND (term_id = 18))
Filter: (object_type = 11)
-> Bitmap Index Scan on tbl_term_taxonomy_relationships_object_id_term_id_idx (cost=0.00..86.20 rows=35 width=0)
Index Cond: ((object_id = ANY ('{7350,7347,7348,7354,7355,7353,7352,7351,7346,7345,7344,7343,7342,7341,7340,7339,7338,7337,7336,7335}'::integer[])) AND (term_id = 18))
-> Hash (cost=6.72..6.72 rows=272 width=19)
-> Seq Scan on tbl_term_taxonomies tt (cost=0.00..6.72 rows=272 width=19)