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 (
    12181, 12180, 15619, 16931, 12902, 14884, 
    15668, 15603, 14869, 13930, 16661, 
    14244, 14896, 14216, 14794, 13447, 
    12463
  )

Query time 0.00808

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": 49,
          "filtered": 100,
          "index_condition": "gp.group_id in (12181,12180,15619,16931,12902,14884,15668,15603,14869,13930,16661,14244,14896,14216,14794,13447,12463)"
        }
      },
      {
        "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
19652 14935 68356 12180
19652 14934 68354 12180
19652 6553 68355 12180
19653 14937 68359 12181
19653 14936 68357 12181
19653 6552 68358 12181
19961 16481 69767 12463
19961 16480 69766 12463
19961 16479 69765 12463
19961 16478 69764 12463
19961 5723 69768 12463
20450 18748 71549 12902
20450 3889 71548 12902
21055 21082 73523 13447
21055 2460 73522 13447
21598 23032 75523 13930
21598 1532 75524 13930
21915 24120 76709 14216
21915 24119 76708 14216
21915 24118 76707 14216
21915 1056 76710 14216
21943 992 76827 14244
21943 24209 76826 14244
21943 24210 76828 14244
22541 79 79145 14794
22541 26583 79149 14794
22541 26584 79146 14794
22541 26585 79147 14794
22541 26586 79148 14794
22572 2258 79229 14869
22572 27114 79231 14869
22572 27113 79230 14869
22665 2254 79349 14884
22665 26844 79350 14884
22665 26845 79351 14884
22677 27140 79378 14896
22677 1838 79377 14896
23479 33697 81479 15603
23479 33768 81480 15603
23490 33720 81505 15619
23490 33802 81506 15619
23490 33803 81507 15619
23490 33804 81508 15619
23535 35187 81676 15668
23535 35245 81677 15668
23535 35246 81678 15668
24436 4582 85225 16661
24436 43797 85226 16661
24704 46692 86165 16931
24704 46749 86166 16931
24704 46750 86167 16931