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 (
    15435, 15444, 15442, 15446, 15429, 15935, 
    16376, 15437, 13987, 15436, 17262, 
    17259, 17258, 17261, 17254, 17260, 
    17255, 17328, 17309, 17327, 17311, 
    17308
  )

Query time 0.00595

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": 69,
          "filtered": 100,
          "index_condition": "gp.group_id in (15435,15444,15442,15446,15429,15935,16376,15437,13987,15436,17262,17259,17258,17261,17254,17260,17255,17328,17309,17327,17311,17308)"
        }
      },
      {
        "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
21662 1415 75757 13987
21662 23252 75754 13987
21662 23253 75755 13987
21662 23254 75756 13987
23312 32307 80874 15429
23312 32359 80875 15429
23319 32313 80894 15435
23319 32375 80895 15435
23319 32376 80896 15435
23319 32377 80897 15435
23320 32314 80898 15436
23320 32378 80899 15436
23320 32379 80900 15436
23321 32315 80901 15437
23321 32380 80902 15437
23321 32381 80903 15437
23328 32321 80921 15442
23329 32321 80923 15442
23328 32403 80921 15442
23329 32403 80924 15442
23328 32404 80922 15442
23329 32404 80923 15442
23328 32405 80922 15442
23329 32405 80924 15442
23332 32324 80929 15444
23332 32409 80930 15444
23334 32327 80934 15446
23334 32412 80935 15446
23799 37416 82751 15935
23799 37479 82752 15935
23799 37480 82753 15935
23799 37481 82754 15935
23799 37482 82755 15935
23799 37483 82756 15935
24172 40914 84224 16376
24172 40931 84225 16376
24172 40932 84226 16376
25009 49275 87236 17254
25009 49341 87239 17254
25009 49337 87237 17254
25009 49339 87241 17254
25009 49340 87240 17254
25009 49338 87238 17254
25010 49282 87242 17255
25010 49354 87243 17255
25010 49355 87244 17255
25010 49356 87245 17255
25010 49357 87246 17255
25015 49300 87262 17258
25015 49324 87263 17259
25015 49302 87262 17260
25015 49330 87263 17261
25015 49304 87262 17262
25015 49390 87263 17262
25069 49829 87467 17308
25069 49828 87466 17308
25069 49827 87465 17308
25070 49833 87470 17309
25070 49832 87469 17309
25070 49831 87468 17309
25013 49842 87251 17311
25013 49841 87249 17311
25111 50055 87662 17327
25111 50054 87661 17327
25112 50056 87663 17328
25112 50057 87664 17328