SELECT 
  f.feature_id, 
  f.purpose, 
  p.product_id, 
  p.parent_product_id, 
  g.id, 
  g.code 
FROM 
  cscart_product_variation_group_features AS f 
  INNER JOIN cscart_product_variation_groups AS g ON f.group_id = g.id 
  INNER JOIN cscart_product_variation_group_products AS p ON f.group_id = p.group_id 
WHERE 
  p.product_id IN (
    95035, 95036, 95037, 95038, 95039, 95040, 
    95041, 95042, 95043, 95044, 95045, 
    95046, 95047, 95048, 95049, 95050, 
    95051, 95052, 95053, 95054, 95055, 
    95056, 95057, 95058, 95059, 95060, 
    95061, 95062, 95063, 95064, 95065, 
    95066, 95067, 95068, 95069, 95070, 
    95071, 95072, 95073, 95074, 95075, 
    95076, 95077, 95078, 95079, 95080, 
    95081, 95082, 95083, 95084, 95085, 
    95086, 95087, 95088, 95089, 95090, 
    95091, 95092, 95093, 95094, 95095, 
    95096, 95097, 95098, 95099, 95321, 
    95322, 95323, 95324, 95325, 95326, 
    95327, 95328, 95329, 95330, 95331, 
    95332, 95333, 95334, 95335, 95336, 
    95337, 95338, 95339, 95340, 95341, 
    95342, 95343, 95344, 95345, 95346, 
    95347, 95348, 95349, 95350, 95351
  )

Query time 0.00072

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.05"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "f",
          "access_type": "ALL",
          "possible_keys": [
            "idx_group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.10",
            "prefix_cost": "0.35",
            "data_read_per_join": "104"
          },
          "used_columns": [
            "feature_id",
            "purpose",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "g",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "id"
          ],
          "key_length": "3",
          "ref": [
            "nuie_scalesta_net.f.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.10",
            "prefix_cost": "0.70",
            "data_read_per_join": "400"
          },
          "used_columns": [
            "id",
            "code"
          ]
        }
      },
      {
        "table": {
          "table_name": "p",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "nuie_scalesta_net.f.group_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "index_condition": "(`nuie_scalesta_net`.`p`.`product_id` in (95035,95036,95037,95038,95039,95040,95041,95042,95043,95044,95045,95046,95047,95048,95049,95050,95051,95052,95053,95054,95055,95056,95057,95058,95059,95060,95061,95062,95063,95064,95065,95066,95067,95068,95069,95070,95071,95072,95073,95074,95075,95076,95077,95078,95079,95080,95081,95082,95083,95084,95085,95086,95087,95088,95089,95090,95091,95092,95093,95094,95095,95096,95097,95098,95099,95321,95322,95323,95324,95325,95326,95327,95328,95329,95330,95331,95332,95333,95334,95335,95336,95337,95338,95339,95340,95341,95342,95343,95344,95345,95346,95347,95348,95349,95350,95351))",
          "cost_info": {
            "read_cost": "0.25",
            "eval_cost": "0.10",
            "prefix_cost": "1.05",
            "data_read_per_join": "16"
          },
          "used_columns": [
            "product_id",
            "parent_product_id",
            "group_id"
          ]
        }
      }
    ]
  }
}