SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  gp.group_id 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_variation_group_products AS gp ON pfv.product_id = gp.product_id 
  INNER JOIN cscart_product_variation_group_features AS gpf ON gpf.group_id = gp.group_id 
  AND gpf.feature_id = pfv.feature_id 
WHERE 
  pfv.lang_code = 'vi' 
  AND gp.group_id IN (15398, 15395, 15399, 15396, 15400)

Query time 0.00280

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "gp",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "rows": 34,
          "filtered": 100,
          "index_condition": "gp.group_id in (15398,15395,15399,15396,15400)"
        }
      },
      {
        "table": {
          "table_name": "gpf",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "ref": ["dev_db.gp.group_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "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"],
          "ref": ["dev_db.gp.product_id", "dev_db.gpf.feature_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "pfv.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
23274 31949 80725 15395
23274 32112 80726 15395
23274 32113 80727 15395
23274 32114 80728 15395
23274 32115 80729 15395
23274 32116 80730 15395
23274 32117 80731 15395
23274 32118 80732 15395
23274 32119 80733 15395
23275 31950 80734 15396
23275 32120 80735 15396
23275 32121 80736 15396
23275 32122 80737 15396
23277 31952 80743 15398
23277 32127 80744 15398
23277 32128 80745 15398
23277 32129 80746 15398
23277 48543 86895 15398
23277 48544 86896 15398
23277 48545 86897 15398
23278 31953 80747 15399
23278 32130 80748 15399
23278 32131 80749 15399
23278 32132 80750 15399
23278 32133 80751 15399
23278 32134 80752 15399
23278 32135 80753 15399
23278 32136 80754 15399
23278 32137 80755 15399
23279 31954 80756 15400
23279 32138 80765 15400
23279 32139 80757 15400
23279 32140 80758 15400
23279 32141 80759 15400
23279 32142 80760 15400
23279 32143 80761 15400
23279 32144 80762 15400
23279 32145 80763 15400
23279 32146 80764 15400