SELECT 
  product_id, 
  feature_id, 
  variant_id 
FROM 
  cscart_product_features_values 
WHERE 
  product_id IN (
    40598, 40597, 40527, 40592, 40593, 40594, 
    40595, 40596
  ) 
  AND feature_id IN (24095) 
  AND lang_code = 'vi'

Query time 0.00133

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": 8,
          "filtered": 100,
          "attached_condition": "cscart_product_features_values.feature_id = 24095 and cscart_product_features_values.product_id in (40598,40597,40527,40592,40593,40594,40595,40596) and cscart_product_features_values.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id feature_id variant_id
40527 24095 83954
40592 24095 83955
40593 24095 83956
40594 24095 83957
40595 24095 83958
40596 24095 83959
40597 24095 83960
40598 24095 83961