QUERY PLAN
Sort (cost=233.58..233.60 rows=5 width=96)
Sort Key: pt.id
-> Hash Left Join (cost=96.32..233.53 rows=5 width=96)
Hash Cond: (pt.taxonomy_id = tt.id)
-> Bitmap Heap Scan on tbl_term_taxonomy_relationships pt (cost=86.20..223.39 rows=5 width=51)
Recheck Cond: ((object_id = ANY ('{7350,7348,7354,7356,7355,7353,7352,7351,7346,7347,7335,7334,7,6,5,3,7349,7332,7331,7330}'::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=46 width=0)
Index Cond: ((object_id = ANY ('{7350,7348,7354,7356,7355,7353,7352,7351,7346,7347,7335,7334,7,6,5,3,7349,7332,7331,7330}'::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)