QUERY PLAN
Sort (cost=38.91..38.92 rows=3 width=21)
Sort Key: sort
-> Index Scan using tbl_term_taxonomies_pkey on tbl_term_taxonomies (cost=0.14..38.89 rows=3 width=21)
Index Cond: (id = ANY ('{46,100,182,179,142,45,101,102,96,6,93,165,105,167,184,189,97,1,2100000000,185,193,213,2,164,168,173,7,136,135,196,204,133,139,153,5,130,172,197,199,205,194,181,94,8,10,154,174,215,155,226,212,128,131,176,191,200,157,230,166,224,192,171,207,231,214,219,223,229,9,208,210,211,227,216,228,11,209,217,218,221,225,222,160,140,203,138,313,107,156,178,315,319,112,137,163,317,309,129,183,190,114,320,232,265,305,327,333,340,341,349,350,359,360,365,369,373,374,377}'::integer[]))
Filter: (term_id = 12)