SELECT 
  product_id, 
  feature_id, 
  variant_id 
FROM 
  cscart_product_features_values 
WHERE 
  product_id IN (
    46231, 46230, 46229, 46228, 46227, 46160
  ) 
  AND feature_id IN (24670, 24671) 
  AND lang_code = 'vi'

Query time 0.00332

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": "PRIMARY",
          "key_length": "6",
          "used_key_parts": ["feature_id", "product_id"],
          "rows": 12,
          "filtered": 51.53282928,
          "attached_condition": "cscart_product_features_values.product_id in (46231,46230,46229,46228,46227,46160) and cscart_product_features_values.feature_id in (24670,24671) and cscart_product_features_values.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id feature_id variant_id
46160 24670 86076
46227 24670 86076
46228 24670 86076
46229 24670 86077
46230 24670 86077
46231 24670 86077
46160 24671 86078
46227 24671 86079
46228 24671 86080
46229 24671 86078
46230 24671 86079
46231 24671 86080