QUERY PLAN
Sort (cost=206.30..206.30 rows=1 width=98)
Sort Key: pt.id
-> Nested Loop Left Join (cost=82.35..206.29 rows=1 width=98)
-> Bitmap Heap Scan on tbl_term_taxonomy_relationships pt (cost=82.20..198.07 rows=1 width=51)
Recheck Cond: ((object_id = ANY ('{4240,4145,4136,4122,4103,4098,4056,4000,3987,3982,3969,3936,3917,3903,3902,3901,3863,3804,3769,4118}'::integer[])) AND (term_id = 18))
Filter: (object_type = 8)
-> 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 ('{4240,4145,4136,4122,4103,4098,4056,4000,3987,3982,3969,3936,3917,3903,3902,3901,3863,3804,3769,4118}'::integer[])) AND (term_id = 18))
-> Index Scan using tbl_term_taxonomies_pkey on tbl_term_taxonomies tt (cost=0.15..8.17 rows=1 width=22)
Index Cond: (pt.taxonomy_id = id)