QUERY PLAN
Sort (cost=208.63..208.64 rows=5 width=99)
Sort Key: pt.id
-> Hash Left Join (cost=93.00..208.57 rows=5 width=99)
Hash Cond: (pt.taxonomy_id = tt.id)
-> Bitmap Heap Scan on tbl_term_taxonomy_relationships pt (cost=82.20..197.76 rows=5 width=51)
Recheck Cond: ((object_id = ANY ('{7124,7005,7004,6994,6910,6907,6906,6905,6904,6900,6899,6898,6897,6896,6745,6744,6743,6742,6741,6740}'::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 ('{7124,7005,7004,6994,6910,6907,6906,6905,6904,6900,6899,6898,6897,6896,6745,6744,6743,6742,6741,6740}'::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)