SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  fv.position, 
  fvd.variant 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_feature_variants AS fv ON pfv.feature_id = fv.feature_id 
  AND pfv.variant_id = fv.variant_id 
  INNER JOIN cscart_product_feature_variant_descriptions AS fvd ON pfv.variant_id = fvd.variant_id 
  AND fvd.lang_code = 'en' 
WHERE 
  pfv.feature_id IN (
    641, 637, 636, 627, 623, 622, 626, 553, 
    625, 624, 628, 595
  ) 
  AND pfv.product_id IN (
    1154, 3315, 3318, 3687, 5076, 4691, 3071, 
    513, 3505, 12916, 12921, 12876, 12896, 
    12900, 12909
  ) 
  AND pfv.lang_code = 'en'

Query time 0.01200

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "153.28"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "pfv",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "variant_id",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "used_key_parts": [
            "product_id",
            "feature_id",
            "lang_code"
          ],
          "key_length": "12",
          "rows_examined_per_scan": 203,
          "rows_produced_per_join": 203,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "25.14",
            "eval_cost": "20.30",
            "prefix_cost": "45.44",
            "data_read_per_join": "157K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ],
          "attached_condition": "((`test2_gaseus`.`pfv`.`feature_id` in (641,637,636,627,623,622,626,553,625,624,628,595)) and (`test2_gaseus`.`pfv`.`product_id` in (1154,3315,3318,3687,5076,4691,3071,513,3505,12916,12921,12876,12896,12900,12909)) and (`test2_gaseus`.`pfv`.`lang_code` = 'en'))"
        }
      },
      {
        "table": {
          "table_name": "fv",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY",
            "feature_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id"
          ],
          "key_length": "3",
          "ref": [
            "test2_gaseus.pfv.variant_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 105,
          "filtered": "51.79",
          "cost_info": {
            "read_cost": "50.75",
            "eval_cost": "10.51",
            "prefix_cost": "116.49",
            "data_read_per_join": "119K"
          },
          "used_columns": [
            "variant_id",
            "feature_id",
            "position"
          ],
          "attached_condition": "(`test2_gaseus`.`fv`.`feature_id` = `test2_gaseus`.`pfv`.`feature_id`)"
        }
      },
      {
        "table": {
          "table_name": "fvd",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "variant_id",
            "lang_code"
          ],
          "key_length": "9",
          "ref": [
            "test2_gaseus.pfv.variant_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 105,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "26.28",
            "eval_cost": "10.51",
            "prefix_cost": "153.29",
            "data_read_per_join": "327K"
          },
          "used_columns": [
            "variant_id",
            "variant",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id position variant
553 513 1912 1 up to 5.0 (laboratory gases / laser gases)
595 513 1789 0 Argon (Ar)
622 513 2325 0 DIN 477-1 No. 6 (W 21.8 x 1/14 RH)
623 513 2083 0 External thread G3/8" RHk according to EN 560
624 513 1705 0 200
625 513 2364 0 60,00
626 513 1727 0 140
627 513 1659 1 Brass
628 513 1660 0 Single stage
553 1154 1973 1 up to 4.5 (technical gases)
595 1154 1905 0 Nitrogen (N2)
622 1154 1946 0 DIN 477-1 No. 10 (W 24.32 x 1/14 RH)
623 1154 2082 0 Hose nozzle G3/8" RHk x 9 mm
624 1154 1705 0 200
625 1154 2122 0 10
626 1154 1706 0 48
627 1154 1659 1 Brass
628 1154 1660 0 Single stage
636 1154 2348 0 Y
637 1154 2345 0 N
641 1154 2347 0 N
553 3071 1973 1 up to 4.5 (technical gases)
595 3071 1905 0 Nitrogen (N2)
622 3071 1946 0 DIN 477-1 No. 10 (W 24.32 x 1/14 RH)
623 3071 2082 0 Hose nozzle G3/8" RHk x 9 mm
624 3071 1705 0 200
625 3071 2362 0 40,00
626 3071 1723 0 120
627 3071 1659 1 Brass
628 3071 1660 0 Single stage
636 3071 2348 0 Y
553 3315 1973 1 up to 4.5 (technical gases)
595 3315 1941 0 Tracer gases (mixture)
622 3315 1942 0 DIN 477-1 No. 14 (M 19 x 1.5 LH)
623 3315 1983 0 G 3/8 LH x 9 mm (hose grommet)
624 3315 1705 0 200
625 3315 2341 0 1,50
626 3315 2343 0 n/a
627 3315 1659 1 Brass
628 3315 1712 0 Double stage
636 3315 2344 0 N
637 3315 2345 0 N
641 3315 2347 0 N
553 3318 1973 1 up to 4.5 (technical gases)
595 3318 1905 0 Nitrogen (N2)
622 3318 1946 0 DIN 477-1 No. 10 (W 24.32 x 1/14 RH)
623 3318 1975 0 G 1/4 RH x 6 mm (hose grommet)
624 3318 1705 0 200
625 3318 2334 0 10,00
626 3318 1706 0 48
627 3318 1659 1 Brass
628 3318 1660 0 Single stage
636 3318 2348 0 Y
637 3318 2345 0 N
641 3318 2347 0 N
553 3505 1912 1 up to 5.0 (laboratory gases / laser gases)
595 3505 1930 0 Synthetic air (mixture)
622 3505 2293 0 External thread G3/8" RHk according to EN 560
623 3505 2083 0 External thread G3/8" RHk according to EN 560
624 3505 1705 0 200
625 3505 2364 0 60,00
626 3505 1727 0 140
627 3505 1659 1 Brass
628 3505 1660 0 Single stage
553 3687 1973 1 up to 4.5 (technical gases)
595 3687 1789 0 Argon (Ar)
622 3687 2325 0 DIN 477-1 No. 6 (W 21.8 x 1/14 RH)
623 3687 1975 0 G 1/4 RH x 6 mm (hose grommet)
624 3687 1705 0 200
625 3687 2339 0 4,50
626 3687 2021 0 0,3
627 3687 1659 1 Brass
628 3687 1660 0 Single stage
636 3687 2348 0 Y
637 3687 2350 0 Y
641 3687 2347 0 N
553 4691 1973 1 up to 4.5 (technical gases)
595 4691 1904 0 Oxygen (O2)
622 4691 1945 0 DIN 477-1 No. 9 (G 3/4 RH)
623 4691 2082 0 Hose nozzle G3/8" RHk x 9 mm
624 4691 1705 0 200
625 4691 2337 0 20,00
626 4691 1721 0 75
627 4691 1659 1 Brass
628 4691 1660 0 Single stage
636 4691 2348 0 Y
553 5076 1973 1 up to 4.5 (technical gases)
595 5076 1900 0 Hydrogen (H2)
622 5076 1937 0 DIN 477-1 No. 1 (W 21.80 x 1/14 LH)
623 5076 1983 0 G 3/8 LH x 9 mm (hose grommet)
624 5076 1705 0 200
625 5076 2339 0 4,50
626 5076 2020 0 1,92
627 5076 1659 1 Brass
628 5076 1660 0 Single stage
636 5076 2348 0 Y
637 5076 2350 0 Y
641 5076 2347 0 N
553 12876 1973 1 up to 4.5 (technical gases)
595 12876 1904 0 Oxygen (O2)
622 12876 2443 0 G 3/8" RH nut (acc. to EN 560)
623 12876 2471 0 G 1/4" RH x 6 mm (hose nozzle)
624 12876 1694 0 20
625 12876 2122 0 10
626 12876 2473 0 46
627 12876 1659 1 Brass
628 12876 1660 0 Single stage
636 12876 2344 0 N
637 12876 2345 0 N
641 12876 2347 0 N
553 12896 1973 1 up to 4.5 (technical gases)
595 12896 2451 0 CO₂/Argon (Ar, CO2)
622 12896 2443 0 G 3/8" RH nut (acc. to EN 560)
623 12896 2471 0 G 1/4" RH x 6 mm (hose nozzle)
624 12896 1694 0 20
625 12896 2464 0 4.5 (fixed)
626 12896 2466 0 0.5–5.0 Nl/min
627 12896 1659 1 Brass
628 12896 1660 0 Single stage
636 12896 2344 0 N
637 12896 2350 0 Y
641 12896 2347 0 N
553 12900 1973 1 up to 4.5 (technical gases)
595 12900 1904 0 Oxygen (O2)
622 12900 2485 0 G 1/2" RH nut (acc. to EN 560)
623 12900 2486 0 G 1/2" RH x 9 mm (hose nozzle)
624 12900 1675 0 40
625 12900 2123 0 20
626 12900 1721 0 75
627 12900 1659 1 Brass
628 12900 1660 0 Single stage
636 12900 2344 0 N
637 12900 2345 0 N
641 12900 2347 0 N
553 12909 1973 1 up to 4.5 (technical gases)
595 12909 1904 0 Oxygen (O2)
622 12909 2485 0 G 1/2" RH nut (acc. to EN 560)
623 12909 2486 0 G 1/2" RH x 9 mm (hose nozzle)
624 12909 1657 0 60
625 12909 2124 0 40
626 12909 1723 0 120
627 12909 1659 1 Brass
628 12909 1660 0 Single stage
636 12909 2344 0 N
637 12909 2345 0 N
641 12909 2347 0 N
553 12916 1973 1 up to 4.5 (technical gases)
595 12916 1904 0 Oxygen (O2)
622 12916 2485 0 G 1/2" RH nut (acc. to EN 560)
623 12916 2486 0 G 1/2" RH x 9 mm (hose nozzle)
624 12916 1876 0 100
625 12916 2123 0 20
627 12916 1659 1 Brass
628 12916 1660 0 Single stage
636 12916 2344 0 N
637 12916 2345 0 N
641 12916 2347 0 N
553 12921 1973 1 up to 4.5 (technical gases)
595 12921 1904 0 Oxygen (O2)
622 12921 2485 0 G 1/2" RH nut (acc. to EN 560)
623 12921 2486 0 G 1/2" RH x 9 mm (hose nozzle)
624 12921 1876 0 100
625 12921 2124 0 40
627 12921 1659 1 Brass
628 12921 1660 0 Single stage
636 12921 2344 0 N
637 12921 2345 0 N
641 12921 2347 0 N