QUERY PLAN
Sort (cost=204.19..204.20 rows=1 width=96)
Sort Key: pt.id
-> Nested Loop Left Join (cost=86.35..204.18 rows=1 width=96)
-> Bitmap Heap Scan on tbl_term_taxonomy_relationships pt (cost=86.20..195.96 rows=1 width=51)
Recheck Cond: ((object_id = ANY ('{4081,4080,4079,4077,4074,4072,4070,4069,4067,4066,4063,4062,4060,4059,4058,4057,4053,4052,4051,4045}'::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..86.20 rows=35 width=0)
Index Cond: ((object_id = ANY ('{4081,4080,4079,4077,4074,4072,4070,4069,4067,4066,4063,4062,4060,4059,4058,4057,4053,4052,4051,4045}'::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=19)
Index Cond: (pt.taxonomy_id = id)