QUERY PLAN
Sort (cost=213.89..213.90 rows=5 width=98)
Sort Key: pt.id
-> Hash Left Join (cost=11.20..213.83 rows=5 width=98)
Hash Cond: (pt.taxonomy_id = tt.id)
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships pt (cost=0.29..202.91 rows=5 width=51)
Index Cond: ((object_id = ANY ('{8489,8483,8461,8460,8459,8458,8457,8456,8455,8454,8453,8452,8451,8450,8449,8448,8447,8446,8445,8444}'::integer[])) AND (term_id = 18))
Filter: (object_type = 11)
-> Hash (cost=7.07..7.07 rows=307 width=22)
-> Seq Scan on tbl_term_taxonomies tt (cost=0.00..7.07 rows=307 width=22)