QUERY PLAN
Sort (cost=16.54..16.54 rows=1 width=58)
Sort Key: r.id
-> Nested Loop Left Join (cost=0.44..16.53 rows=1 width=58)
-> Index Scan using tbl_term_taxonomy_relationships_object_id_term_id_idx on tbl_term_taxonomy_relationships r (cost=0.29..8.31 rows=1 width=14)
Index Cond: ((object_id = 39) AND (term_id = 20))
Filter: (object_type = 14)
-> Index Scan using tbl_term_taxonomies_pkey on tbl_term_taxonomies tt (cost=0.15..8.17 rows=1 width=22)
Index Cond: (id = r.taxonomy_id)