SELECT 
  variant_id, 
  yml2_unit 
FROM 
  cscart_product_feature_variant_descriptions 
WHERE 
  variant_id IN (
    '1', '3', '125', '172', '296', '258', 
    '173', '127', '149', '120', '123', 
    '234', '146', '57', '58', '147', '176', 
    '42', '31', '26', '267', '298', '262', 
    '263', '264', '265', '260', '299', 
    '237', '238', '154'
  ) 
  AND lang_code = 'ru'

Query time 0.00040

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "21.71"
    },
    "table": {
      "table_name": "cscart_product_feature_variant_descriptions",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "variant_id",
        "lang_code"
      ],
      "key_length": "9",
      "rows_examined_per_scan": 31,
      "rows_produced_per_join": 31,
      "filtered": "100.00",
      "index_condition": "((`test_uchur_k`.`cscart_product_feature_variant_descriptions`.`variant_id` in ('1','3','125','172','296','258','173','127','149','120','123','234','146','57','58','147','176','42','31','26','267','298','262','263','264','265','260','299','237','238','154')) and (`test_uchur_k`.`cscart_product_feature_variant_descriptions`.`lang_code` = 'ru'))",
      "cost_info": {
        "read_cost": "18.61",
        "eval_cost": "3.10",
        "prefix_cost": "21.71",
        "data_read_per_join": "96K"
      },
      "used_columns": [
        "variant_id",
        "lang_code",
        "yml2_unit"
      ]
    }
  }
}

Result

variant_id yml2_unit
1
3
26
31
42
57
58
120
123
125
127
146
147
149
154
172
173
176
234
237
238
258
260
262
263
264
265
267
296
298
299