QUERY PLAN
Sort (cost=208.59..208.61 rows=5 width=99)
Sort Key: pt.id
-> Hash Left Join (cost=93.00..208.54 rows=5 width=99)
Hash Cond: (pt.taxonomy_id = tt.id)
-> Bitmap Heap Scan on tbl_term_taxonomy_relationships pt (cost=82.20..197.73 rows=5 width=51)
Recheck Cond: ((object_id = ANY ('{7494,7493,7398,7397,7396,7395,7394,7393,7392,7391,7390,7389,7388,7387,7386,7385,7384,7383,7382,7381}'::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..82.20 rows=37 width=0)
Index Cond: ((object_id = ANY ('{7494,7493,7398,7397,7396,7395,7394,7393,7392,7391,7390,7389,7388,7387,7386,7385,7384,7383,7382,7381}'::integer[])) AND (term_id = 18))
-> Hash (cost=7.02..7.02 rows=302 width=22)
-> Seq Scan on tbl_term_taxonomies tt (cost=0.00..7.02 rows=302 width=22)