SELECT 
  variant_id, 
  yml2_unit 
FROM 
  cscart_product_feature_variant_descriptions 
WHERE 
  variant_id IN (
    '4775', 
    '4766', 
    '4763', 
    '4783', 
    '4787', 
    '4773', 
    '4780', 
    '4784', 
    '3095', 
    '3096', 
    '3099', 
    '3100', 
    '3101', 
    '3103', 
    '3085', 
    '3086', 
    '3087', 
    '3088', 
    '3089', 
    '3090', 
    '3093', 
    '3091', 
    '3094', 
    '3104', 
    '3084', 
    '1287', 
    '1372', 
    '476', 
    '152', 
    '153', 
    '21', 
    '463', 
    '75', 
    '144', 
    '1605', 
    '437', 
    '462', 
    '135', 
    '66', 
    '1455', 
    '145', 
    '608', 
    '1446', 
    '58', 
    '147', 
    '148', 
    '540', 
    '617', 
    '636', 
    '1604', 
    '605', 
    '1351', 
    '613', 
    '473', 
    '601', 
    '600', 
    '125', 
    '603', 
    '578', 
    '126', 
    '604', 
    '644', 
    '638', 
    '403', 
    '50', 
    '88', 
    '1457', 
    '123', 
    '626', 
    '629', 
    '635', 
    '127', 
    '48', 
    '1331', 
    '122', 
    '436', 
    '657', 
    '146', 
    '1363', 
    '602', 
    '477', 
    '59', 
    '478', 
    '655', 
    '381', 
    '614', 
    '631', 
    '90', 
    '47', 
    '474', 
    '633', 
    '1462', 
    '392', 
    '632', 
    '87', 
    '1577', 
    '60', 
    '619', 
    '535', 
    '1354', 
    '498', 
    '536', 
    '654', 
    '479', 
    '645', 
    '643', 
    '890', 
    '611', 
    '421', 
    '1579', 
    '422', 
    '610', 
    '1578', 
    '623', 
    '64', 
    '49', 
    '622', 
    '85', 
    '639', 
    '612', 
    '124', 
    '501', 
    '242', 
    '129', 
    '616', 
    '120', 
    '625', 
    '128', 
    '393', 
    '640', 
    '627', 
    '20', 
    '1313', 
    '150', 
    '419', 
    '278', 
    '1288', 
    '176', 
    '1793', 
    '233', 
    '2597', 
    '2663', 
    '1984', 
    '2598', 
    '2833', 
    '96', 
    '3386', 
    '431', 
    '3384', 
    '1856', 
    '2030', 
    '1859', 
    '1870', 
    '1293', 
    '1349', 
    '1290', 
    '1376', 
    '491', 
    '1291', 
    '455', 
    '1402', 
    '434', 
    '62', 
    '1702', 
    '175', 
    '1307', 
    '61', 
    '79', 
    '450', 
    '1460', 
    '1512', 
    '1400', 
    'Y', 
    '461', 
    '1315', 
    '1285', 
    '3063', 
    '1348', 
    '1321', 
    '1743', 
    '3543', 
    '3567', 
    '347', 
    '3568', 
    '142', 
    '17', 
    '345', 
    '42', 
    '1353', 
    '630', 
    '628', 
    '1', 
    '486', 
    '489', 
    '65', 
    '1456', 
    '43', 
    '624', 
    '1364', 
    '1437', 
    '356', 
    '298', 
    '195', 
    '1020', 
    '487', 
    '590', 
    '214', 
    '44', 
    '1451', 
    '299', 
    '136', 
    '121', 
    '91', 
    '710', 
    '45', 
    '490', 
    '341', 
    '637', 
    '46', 
    '1877', 
    '2137', 
    '2728'
  ) 
  AND lang_code = 'uk'

Query time 0.00163

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "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": 222,
          "filtered": 100,
          "index_condition": "cscart_product_feature_variant_descriptions.variant_id in ('4775','4766','4763','4783','4787','4773','4780','4784','3095','3096','3099','3100','3101','3103','3085','3086','3087','3088','3089','3090','3093','3091','3094','3104','3084','1287','1372','476','152','153','21','463','75','144','1605','437','462','135','66','1455','145','608','1446','58','147','148','540','617','636','1604','605','1351','613','473','601','600','125','603','578','126','604','644','638','403','50','88','1457','123','626','629','635','127','48','1331','122','436','657','146','1363','602','477','59','478','655','381','614','631','90','47','474','633','1462','392','632','87','1577','60','619','535','1354','498','536','654','479','645','643','890','611','421','1579','422','610','1578','623','64','49','622','85','639','612','124','501','242','129','616','120','625','128','393','640','627','20','1313','150','419','278','1288','176','1793','233','2597','2663','1984','2598','2833','96','3386','431','3384','1856','2030','1859','1870','1293','1349','1290','1376','491','1291','455','1402','434','62','1702','175','1307','61','79','450','1460','1512','1400','Y','461','1315','1285','3063','1348','1321','1743','3543','3567','347','3568','142','17','345','42','1353','630','628','1','486','489','65','1456','43','624','1364','1437','356','298','195','1020','487','590','214','44','1451','299','136','121','91','710','45','490','341','637','46','1877','2137','2728') and cscart_product_feature_variant_descriptions.lang_code = 'uk'"
        }
      }
    ]
  }
}

Result

variant_id yml2_unit
1
17
20
21
42
43
44
45
46
47
48
49
50
58
59
60
61
62
64
65
66
75
79
85
87
88
90
91
96
120
121
122
123
124
125
126
127
128
129
135
136
142
144
145
146
147
148
150
152
153
175
176
195
214
233
242
278
298
299
341
345
347
356
381
392
393
403
419
421
422
431
434
436
437
450
455
461
462
463
473
474
476
477
478
479
486
487
489
490
491
498
501
535
536
540
578
590
600
601
602
603
604
605
608
610
611
612
613
614
616
617
619
622
623
624
625
626
627
628
629
630
631
632
633
635
636
637
638
639
640
643
644
645
654
655
657
710
890
1020
1285
1287
1288
1290
1291
1293
1307
1313
1315
1321
1331
1348
1349
1351
1353
1354
1363
1364
1372
1376
1400
1402
1437
1446
1451
1455
1456
1457
1460
1462
1512
1577
1578
1579
1604
1605
1702
1743
1793
1856
1859
1870
1877
1984
2030
2137
2597
2598
2663
2728
2833
3063
3084
3085
3086
3087
3088
3089
3090
3091
3093
3094
3095
3096
3099
3100
3101
3103
3104
3384
3386
3543
3567
3568
4763
4766
4773
4775
4780
4783
4784
4787