SELECT 
  product_id, 
  feature_id, 
  variant_id 
FROM 
  cscart_product_features_values 
WHERE 
  product_id IN (
    31956, 32153, 32154, 32155, 32156, 32157, 
    32158, 32159
  ) 
  AND feature_id IN (23281) 
  AND lang_code = 'vi'

Query time 0.00231

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": 8,
          "filtered": 100,
          "attached_condition": "cscart_product_features_values.feature_id = 23281 and cscart_product_features_values.product_id in (31956,32153,32154,32155,32156,32157,32158,32159) and cscart_product_features_values.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id feature_id variant_id
31956 23281 80773
32153 23281 80774
32154 23281 80775
32155 23281 80776
32156 23281 80777
32157 23281 80778
32158 23281 80779
32159 23281 80780