QUERY PLAN
Sort (cost=15.45..15.46 rows=1 width=96)
Sort Key: pt.id
-> Hash Right Join (cost=7.69..15.44 rows=1 width=96)
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=7.68..7.68 rows=1 width=51)
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships pt (cost=0.29..7.68 rows=1 width=51)
Index Cond: ((object_id = 1) AND (term_id = 20))