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 (
    628, 595, 627, 624, 625, 553, 622, 623, 
    636, 637, 646, 647, 626
  ) 
  AND pfv.product_id IN (
    12916, 12921, 12956, 12958, 13014, 13028, 
    13040, 13052, 12960, 12974, 12988, 
    13000, 13148, 13153, 12928, 12926, 
    12942, 12850, 12869, 12876, 12896, 
    12900, 12909, 12752, 12802
  ) 
  AND pfv.lang_code = 'en'

Query time 0.01862

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "167.58"
    },
    "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": "PRIMARY",
          "used_key_parts": [
            "feature_id",
            "product_id"
          ],
          "key_length": "6",
          "rows_examined_per_scan": 325,
          "rows_produced_per_join": 177,
          "filtered": "54.46",
          "using_index": true,
          "cost_info": {
            "read_cost": "54.73",
            "eval_cost": "17.70",
            "prefix_cost": "72.43",
            "data_read_per_join": "136K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ],
          "attached_condition": "((`test2_gaseus`.`pfv`.`feature_id` in (628,595,627,624,625,553,622,623,636,637,646,647,626)) and (`test2_gaseus`.`pfv`.`product_id` in (12916,12921,12956,12958,13014,13028,13040,13052,12960,12974,12988,13000,13148,13153,12928,12926,12942,12850,12869,12876,12896,12900,12909,12752,12802)) 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": 94,
          "filtered": "53.58",
          "cost_info": {
            "read_cost": "44.25",
            "eval_cost": "9.48",
            "prefix_cost": "134.39",
            "data_read_per_join": "108K"
          },
          "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": 94,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "23.71",
            "eval_cost": "9.48",
            "prefix_cost": "167.58",
            "data_read_per_join": "295K"
          },
          "used_columns": [
            "variant_id",
            "variant",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id position variant
553 12752 1935 1 up to 6.0 (ultrapure gases)
553 12850 1912 1 up to 5.0 (laboratory gases / laser gases)
553 12869 1912 1 up to 5.0 (laboratory gases / laser gases)
553 12876 1973 1 up to 4.5 (technical gases)
553 12896 1973 1 up to 4.5 (technical gases)
553 12900 1973 1 up to 4.5 (technical gases)
553 12909 1973 1 up to 4.5 (technical gases)
553 12916 1973 1 up to 4.5 (technical gases)
553 12921 1973 1 up to 4.5 (technical gases)
553 12926 1973 1 up to 4.5 (technical gases)
553 12928 1912 1 up to 5.0 (laboratory gases / laser gases)
553 12942 1973 1 up to 4.5 (technical gases)
553 12956 1973 1 up to 4.5 (technical gases)
553 12958 1973 1 up to 4.5 (technical gases)
553 12960 1973 1 up to 4.5 (technical gases)
553 12974 1973 1 up to 4.5 (technical gases)
553 12988 1973 1 up to 4.5 (technical gases)
553 13000 1973 1 up to 4.5 (technical gases)
553 13014 1973 1 up to 4.5 (technical gases)
553 13028 1973 1 up to 4.5 (technical gases)
553 13040 1973 1 up to 4.5 (technical gases)
553 13052 1973 1 up to 4.5 (technical gases)
553 13148 1912 1 up to 5.0 (laboratory gases / laser gases)
553 13153 1912 1 up to 5.0 (laboratory gases / laser gases)
595 12850 1904 0 Oxygen (O2)
595 12869 1904 0 Oxygen (O2)
595 12876 1904 0 Oxygen (O2)
595 12896 2451 0 CO₂/Argon (Ar, CO2)
595 12900 1904 0 Oxygen (O2)
595 12909 1904 0 Oxygen (O2)
595 12916 1904 0 Oxygen (O2)
595 12921 1904 0 Oxygen (O2)
595 12926 1904 0 Oxygen (O2)
595 12928 2000 0 Acetylene (C2H2)
595 12942 1904 0 Oxygen (O2)
595 12956 2000 0 Acetylene (C2H2)
595 12958 2000 0 Acetylene (C2H2)
595 12960 1904 0 Oxygen (O2)
595 12974 1904 0 Oxygen (O2)
595 12988 1904 0 Oxygen (O2)
595 13000 1904 0 Oxygen (O2)
595 13014 1904 0 Oxygen (O2)
595 13028 1904 0 Oxygen (O2)
595 13040 1904 0 Oxygen (O2)
595 13052 1904 0 Oxygen (O2)
595 13148 1904 0 Oxygen (O2)
595 13153 1789 0 Argon (Ar)
622 12850 2443 0 G 3/8" RH nut (acc. to EN 560)
622 12869 2443 0 G 3/8" RH nut (acc. to EN 560)
622 12876 2443 0 G 3/8" RH nut (acc. to EN 560)
622 12896 2443 0 G 3/8" RH nut (acc. to EN 560)
622 12900 2485 0 G 1/2" RH nut (acc. to EN 560)
622 12909 2485 0 G 1/2" RH nut (acc. to EN 560)
622 12916 2485 0 G 1/2" RH nut (acc. to EN 560)
622 12921 2485 0 G 1/2" RH nut (acc. to EN 560)
622 12926 2497 0 M 24×1.5 RH
622 12928 2497 0 M 24×1.5 RH
622 12942 2497 0 M 24×1.5 RH
622 12956 2504 0 W 21.8×1/14 LH
622 12958 2504 0 W 21.8×1/14 LH
622 12960 2497 0 M 24×1.5 RH
622 12974 2497 0 M 24×1.5 RH
622 12988 2497 0 M 24×1.5 RH
622 13000 2497 0 M 24×1.5 RH
622 13014 2497 0 M 24×1.5 RH
622 13028 2497 0 M 24×1.5 RH
622 13040 2497 0 M 24×1.5 RH
622 13052 2497 0 M 24×1.5 RH
622 13148 2497 0 M 24×1.5 RH
622 13153 2497 0 M 24×1.5 RH
623 12850 2444 0 Clamp ring fitting 6 mm (stainless steel)
623 12869 2444 0 Clamp ring fitting 6 mm (stainless steel)
623 12876 2471 0 G 1/4" RH x 6 mm (hose nozzle)
623 12896 2471 0 G 1/4" RH x 6 mm (hose nozzle)
623 12900 2486 0 G 1/2" RH x 9 mm (hose nozzle)
623 12909 2486 0 G 1/2" RH x 9 mm (hose nozzle)
623 12916 2486 0 G 1/2" RH x 9 mm (hose nozzle)
623 12921 2486 0 G 1/2" RH x 9 mm (hose nozzle)
623 12926 2498 0 G 3/8" × 10/12 mm
623 12928 2524 0 Clamp ring 8 mm
623 12942 2501 0 G 3/4" × 18 mm
623 12956 2501 0 G 3/4" × 18 mm
623 12958 2501 0 G 3/4" × 18 mm
623 12960 2501 0 G 3/4" × 18 mm
623 12974 2508 0 G 3/4" × 19 mm
623 12988 2508 0 G 3/4" × 19 mm
623 13000 2501 0 G 3/4" × 18 mm
623 13014 2501 0 G 3/4" × 18 mm
623 13028 2501 0 G 3/4" × 18 mm
623 13040 2518 0 G 1/2" Rhi
623 13052 2518 0 G 1/2" Rhi
623 13148 2524 0 Clamp ring 8 mm
623 13153 2524 0 Clamp ring 8 mm
624 12752 1705 0 200
624 12850 1694 0 20
624 12869 1705 0 200
624 12876 1694 0 20
624 12896 1694 0 20
624 12900 1675 0 40
624 12909 1657 0 60
624 12916 1876 0 100
624 12921 1876 0 100
624 12926 1803 0 300
624 12928 1803 0 300
624 12942 1803 0 300
624 12956 2503 0 26
624 12958 2503 0 26
624 12960 1803 0 300
624 12974 1803 0 300
624 12988 1803 0 300
624 13000 1803 0 300
624 13014 1803 0 300
624 13028 1803 0 300
624 13040 1803 0 300
624 13052 1803 0 300
624 13148 1803 0 300
624 13153 1803 0 300
625 12752 2413 0 1.5
625 12850 2122 0 10
625 12869 2462 0 5.0 (fixed)
625 12876 2122 0 10
625 12896 2464 0 4.5 (fixed)
625 12900 2123 0 20
625 12909 2124 0 40
625 12916 2123 0 20
625 12921 2124 0 40
625 12926 2122 0 10
625 12928 2122 0 10
625 12942 2123 0 20
625 12956 2413 0 1.5
625 12958 2413 0 1.5
625 12960 2123 0 20
625 12974 2124 0 40
625 12988 2121 0 60
625 13000 2123 0 20
625 13014 2513 0 15–40
625 13028 2515 0 15–60
625 13040 2517 0 15–200
625 13052 2521 0 15–270
625 13148 2122 0 10
625 13153 2122 0 10
626 12850 2445 0 40 Nm³/h
626 12869 2463 0 1.0–15.0 Nl/min
626 12876 2473 0 46
626 12896 2466 0 0.5–5.0 Nl/min
626 12900 1721 0 75
626 12909 1723 0 120
626 12926 2043 0 50
626 12928 2043 0 50
626 12942 1721 0 75
626 12956 2003 0 10
626 12958 1680 0 18
626 12960 1721 0 75
626 12974 1723 0 120
626 12988 1727 0 140
626 13000 1879 0 170
626 13014 2031 0 290
626 13028 2032 0 450
626 13040 2057 0 480
626 13052 2057 0 480
626 13148 1928 0 30
626 13153 1928 0 30
627 12752 2290 0 Chrome-plated
627 12802 2290 0 Chrome-plated
627 12850 2290 0 Chrome-plated
627 12869 2290 0 Chrome-plated
627 12876 1659 1 Brass
627 12896 1659 1 Brass
627 12900 1659 1 Brass
627 12909 1659 1 Brass
627 12916 1659 1 Brass
627 12921 1659 1 Brass
627 12926 1659 1 Brass
627 12928 2378 0 Chrome-plated brass
627 12942 1659 1 Brass
627 12956 1659 1 Brass
627 12958 1659 1 Brass
627 12960 1659 1 Brass
627 12974 1659 1 Brass
627 12988 1659 1 Brass
627 13000 1659 1 Brass
627 13014 1659 1 Brass
627 13028 1659 1 Brass
627 13040 1659 1 Brass
627 13052 1659 1 Brass
627 13148 2378 0 Chrome-plated brass
627 13153 2378 0 Chrome-plated brass
628 12752 1660 0 Single stage
628 12802 1660 0 Single stage
628 12850 1660 0 Single stage
628 12869 1660 0 Single stage
628 12876 1660 0 Single stage
628 12896 1660 0 Single stage
628 12900 1660 0 Single stage
628 12909 1660 0 Single stage
628 12916 1660 0 Single stage
628 12921 1660 0 Single stage
628 12926 1660 0 Single stage
628 12928 1660 0 Single stage
628 12942 1660 0 Single stage
628 12956 1660 0 Single stage
628 12958 1660 0 Single stage
628 12960 1660 0 Single stage
628 12974 1660 0 Single stage
628 12988 1660 0 Single stage
628 13000 1660 0 Single stage
628 13014 1660 0 Single stage
628 13028 1660 0 Single stage
628 13040 1660 0 Single stage
628 13052 1660 0 Single stage
628 13148 1712 0 Double stage
628 13153 1712 0 Double stage
636 12850 2344 0 N
636 12869 2344 0 N
636 12876 2344 0 N
636 12896 2344 0 N
636 12900 2344 0 N
636 12909 2344 0 N
636 12916 2344 0 N
636 12921 2344 0 N
636 12926 2348 0 Y
636 12928 2348 0 Y
636 12942 2348 0 Y
636 12956 2348 0 Y
636 12958 2348 0 Y
636 12960 2348 0 Y
636 12974 2348 0 Y
636 12988 2348 0 Y
636 13000 2348 0 Y
636 13014 2348 0 Y
636 13028 2348 0 Y
636 13040 2348 0 Y
636 13052 2348 0 Y
636 13148 2348 0 Y
636 13153 2348 0 Y
637 12850 2345 0 N
637 12869 2350 0 Y
637 12876 2345 0 N
637 12896 2350 0 Y
637 12900 2345 0 N
637 12909 2345 0 N
637 12916 2345 0 N
637 12921 2345 0 N
637 12926 2345 0 N
637 12928 2345 0 N
637 12942 2345 0 N
637 12956 2345 0 N
637 12958 2345 0 N
637 12960 2345 0 N
637 12974 2345 0 N
637 12988 2345 0 N
637 13000 2345 0 N
637 13014 2345 0 N
637 13028 2345 0 N
637 13040 2345 0 N
637 13052 2345 0 N
637 13148 2345 0 N
637 13153 2345 0 N
646 12926 2369 0 Gauge
646 12928 2369 0 Gauge
646 12942 2369 0 Gauge
646 12956 2369 0 Gauge
646 12958 2369 0 Gauge
646 12960 2369 0 Gauge
646 12974 2369 0 Gauge
646 12988 2369 0 Gauge
646 13000 2369 0 Gauge
646 13014 2369 0 Gauge
646 13028 2369 0 Gauge
646 13040 2369 0 Gauge
646 13052 2369 0 Gauge
646 13148 2369 0 Gauge
646 13153 2370 0 Contact gauge
647 12926 2373 0 Gauge
647 12928 2373 0 Gauge
647 12942 2373 0 Gauge
647 12956 2373 0 Gauge
647 12958 2373 0 Gauge
647 12960 2373 0 Gauge
647 12974 2373 0 Gauge
647 12988 2373 0 Gauge
647 13000 2373 0 Gauge
647 13014 2373 0 Gauge
647 13028 2373 0 Gauge
647 13040 2373 0 Gauge
647 13052 2373 0 Gauge
647 13148 2373 0 Gauge
647 13153 2374 0 Contact gauge