SELECT 
  variant_id, 
  yml2_unit 
FROM 
  cscart_product_feature_variant_descriptions 
WHERE 
  variant_id IN (
    '1230', '1449', '1201', '1219', '1269', 
    '5900', '5901', '1255', '5903', '5913', 
    '5904', '5907', '1425', '1280', '1254', 
    '5909', '5912', '1203', '1199', '5914', 
    '1241', '5915', '5916', '5940', '1204', 
    '5942'
  ) 
  AND lang_code = 'ru'

Query time 0.00036

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_product_feature_variant_descriptions",
      "access_type": "range",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "9",
      "used_key_parts": ["variant_id", "lang_code"],
      "rows": 26,
      "filtered": 100,
      "index_condition": "cscart_product_feature_variant_descriptions.variant_id in ('1230','1449','1201','1219','1269','5900','5901','1255','5903','5913','5904','5907','1425','1280','1254','5909','5912','1203','1199','5914','1241','5915','5916','5940','1204','5942') and cscart_product_feature_variant_descriptions.lang_code = 'ru'"
    }
  }
}

Result

variant_id yml2_unit
1199
1201
1203
1204
1219
1230
1241
1254
1255
1269
1280
1425
1449
5900
5901
5903
5904
5907
5909
5912
5913
5914
5915
5916
5940
5942