SELECT 
  product_id, 
  feature_id, 
  variant_id 
FROM 
  cscart_product_features_values 
WHERE 
  product_id IN (
    40326, 40325, 40324, 40323, 40322, 40321, 
    40320, 31784, 27378, 31785, 42263, 
    42262, 31786
  ) 
  AND feature_id IN (19630) 
  AND lang_code = 'vi'

Query time 0.00820

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": 13,
          "filtered": 100,
          "attached_condition": "cscart_product_features_values.feature_id = 19630 and cscart_product_features_values.product_id in (40326,40325,40324,40323,40322,40321,40320,31784,27378,31785,42263,42262,31786) and cscart_product_features_values.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

product_id feature_id variant_id
27378 19630 68257
31784 19630 68254
31785 19630 68255
31786 19630 68258
40320 19630 68256
40321 19630 83861
40322 19630 83862
40323 19630 83863
40324 19630 83864
40325 19630 83865
40326 19630 83866
42262 19630 84726
42263 19630 84727