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 (
    13695, 16793, 12924, 16669, 13543, 15660, 
    15664, 15666, 15663, 15662, 16796, 
    15745, 13989, 13544, 14765, 17091, 
    17247
  )

Query time 0.01119

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": 125,
          "filtered": 100,
          "index_condition": "gp.group_id in (13695,16793,12924,16669,13543,15660,15664,15666,15663,15662,16796,15745,13989,13544,14765,17091,17247)"
        }
      },
      {
        "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
20474 18817 71637 12924
20474 18816 71636 12924
20474 18815 71635 12924
20474 18814 71634 12924
20474 18813 71633 12924
20474 18812 71632 12924
20474 3864 71638 12924
21157 21546 73999 13543
21157 21545 73998 13543
21157 21544 74000 13543
21157 2291 73997 13543
21158 21548 74002 13544
21158 21547 74001 13544
21158 2288 74003 13544
21326 22138 74601 13695
21326 22137 74600 13695
21326 1977 74602 13695
21665 1413 75765 13989
21665 23261 75763 13989
21665 23262 75764 13989
21665 23263 75766 13989
22512 118 79019 14765
22512 26485 79018 14765
23527 35167 81657 15660
23527 35234 81658 15660
23527 35235 81659 15660
23529 35171 81663 15662
23529 35238 81664 15662
23530 35172 81665 15663
23530 35239 81666 15663
23531 35174 81667 15664
23531 35240 81668 15664
23533 35176 81672 15666
23533 35243 81673 15666
23622 35731 81910 15745
23623 35731 81913 15745
23622 35844 81910 15745
23623 35844 81914 15745
23622 35845 81910 15745
23623 35845 81915 15745
23622 35846 81910 15745
23623 35846 81916 15745
23622 35847 81911 15745
23623 35847 81913 15745
23622 35848 81911 15745
23623 35848 81914 15745
23622 35849 81911 15745
23623 35849 81915 15745
23622 35850 81911 15745
23623 35850 81916 15745
23622 35851 81912 15745
23623 35851 81913 15745
23622 35852 81912 15745
23623 35852 81914 15745
23622 35853 81912 15745
23623 35853 81915 15745
23622 35854 81912 15745
23623 35854 81916 15745
24444 43825 85255 16669
24444 43839 85256 16669
24444 43840 85257 16669
24566 44944 85738 16793
24567 44944 85746 16793
24566 45115 85738 16793
24567 45115 85747 16793
24566 45116 85738 16793
24567 45116 85748 16793
24566 45117 85739 16793
24567 45117 85746 16793
24566 45118 85739 16793
24567 45118 85747 16793
24566 45119 85739 16793
24567 45119 85748 16793
24566 45120 85740 16793
24567 45120 85746 16793
24566 45121 85740 16793
24567 45121 85747 16793
24566 45122 85740 16793
24567 45122 85748 16793
24566 45123 85741 16793
24567 45123 85746 16793
24566 45124 85741 16793
24567 45124 85747 16793
24566 45125 85741 16793
24567 45125 85748 16793
24566 45126 85742 16793
24567 45126 85746 16793
24566 45127 85742 16793
24567 45127 85747 16793
24566 45128 85742 16793
24567 45128 85748 16793
24566 45129 85743 16793
24567 45129 85746 16793
24566 45130 85743 16793
24567 45130 85747 16793
24566 45131 85743 16793
24567 45131 85748 16793
24566 45132 85744 16793
24567 45132 85746 16793
24566 45133 85744 16793
24567 45133 85747 16793
24566 45134 85744 16793
24567 45134 85748 16793
24566 45135 85745 16793
24567 45135 85746 16793
24566 45136 85745 16793
24567 45136 85747 16793
24566 45137 85745 16793
24567 45137 85748 16793
24551 44947 85626 16796
24569 44947 85757 16796
24551 45184 85626 16796
24569 45184 85758 16796
24551 45185 85626 16796
24569 45185 85759 16796
24551 45186 85627 16796
24569 45186 85757 16796
24551 45187 85627 16796
24569 45187 85758 16796
24551 45188 85627 16796
24569 45188 85759 16796
24551 45189 85628 16796
24569 45189 85757 16796
24551 45190 85628 16796
24569 45190 85758 16796
24551 45191 85628 16796
24569 45191 85759 16796
24551 45192 85629 16796
24569 45192 85757 16796
24551 45193 85629 16796
24569 45193 85758 16796
24551 45194 85629 16796
24569 45194 85759 16796
24551 45195 85630 16796
24569 45195 85757 16796
24551 45196 85630 16796
24569 45196 85758 16796
24551 45197 85630 16796
24569 45197 85759 16796
24551 45198 85631 16796
24569 45198 85757 16796
24551 45199 85631 16796
24569 45199 85758 16796
24551 45200 85631 16796
24569 45200 85759 16796
24551 45201 85632 16796
24569 45201 85757 16796
24551 45202 85632 16796
24569 45202 85758 16796
24551 45203 85632 16796
24569 45203 85759 16796
24551 45204 85633 16796
24569 45204 85757 16796
24551 45205 85633 16796
24569 45205 85758 16796
24551 45206 85633 16796
24569 45206 85759 16796
24836 47656 86606 17091
24836 47693 86607 17091
24836 47694 86608 17091
20545 3638 71871 17247
20545 49192 71868 17247
20545 49194 71870 17247
20545 49193 71869 17247