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

Query time 0.00145

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": 20,
      "filtered": 100,
      "index_condition": "cscart_product_feature_variant_descriptions.variant_id in ('1230','1201','1219','5901','1255','5903','5913','5907','1425','1280','1254','5909','5912','1199','1241','5915','5916','5940','1204','5942') and cscart_product_feature_variant_descriptions.lang_code = 'ru'"
    }
  }
}

Result

variant_id yml2_unit
1199
1201
1204
1219
1230
1241
1254
1255
1280
1425
5901
5903
5907
5909
5912
5913
5915
5916
5940
5942