SELECT 
  product_id, 
  feature_id, 
  variant_id 
FROM 
  cscart_product_features_values 
WHERE 
  product_id IN (
    22227, 22220, 22219, 22218, 22217, 22216, 
    22215, 22214, 1941
  ) 
  AND feature_id IN (21343) 
  AND lang_code = 'vi'

Query time 0.01280

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_product_features_values",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "key_length": "12",
          "used_key_parts": ["product_id", "feature_id", "lang_code"],
          "rows": 9,
          "filtered": 100,
          "attached_condition": "cscart_product_features_values.feature_id = 21343 and cscart_product_features_values.product_id in (22227,22220,22219,22218,22217,22216,22215,22214,1941) and cscart_product_features_values.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id feature_id variant_id
1941 21343 74664
22214 21343 74664
22215 21343 74665
22216 21343 74666
22217 21343 74667
22218 21343 74668
22219 21343 74669
22220 21343 74670
22227 21343 74671