QUERY PLAN
Sort (cost=16.08..16.09 rows=1 width=189)
Sort Key: pt.id
-> Hash Right Join (cost=8.32..16.07 rows=1 width=189)
Hash Cond: (tt.id = pt.taxonomy_id)
-> Seq Scan on tbl_term_taxonomies tt (cost=0.00..6.72 rows=272 width=19)
-> Hash (cost=8.31..8.31 rows=1 width=111)
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships pt (cost=0.29..8.31 rows=1 width=111)
Index Cond: ((object_id = 4042) AND (term_id = 18))
Filter: (object_type = 8)