QUERY PLAN
Sort (cost=208.63..208.64 rows=5 width=99)
Sort Key: pt.id
-> Hash Left Join (cost=93.00..208.57 rows=5 width=99)
Hash Cond: (pt.taxonomy_id = tt.id)
-> Bitmap Heap Scan on tbl_term_taxonomy_relationships pt (cost=82.20..197.76 rows=5 width=51)
Recheck Cond: ((object_id = ANY ('{7371,7370,7369,7368,7396,7394,7393,7392,7136,7135,7134,7133,7132,7131,7130,7129,7128,7127,7126,7125}'::integer[])) AND (term_id = 18))
Filter: (object_type = 11)
-> Bitmap Index Scan on tbl_term_taxonomy_relationships_object_id_term_id_idx (cost=0.00..82.20 rows=37 width=0)
Index Cond: ((object_id = ANY ('{7371,7370,7369,7368,7396,7394,7393,7392,7136,7135,7134,7133,7132,7131,7130,7129,7128,7127,7126,7125}'::integer[])) AND (term_id = 18))
-> Hash (cost=7.02..7.02 rows=302 width=22)
-> Seq Scan on tbl_term_taxonomies tt (cost=0.00..7.02 rows=302 width=22)