SELECT 
  * 
FROM 
  jmj_product_feature_variants 
WHERE 
  variant_id IN (
    3246, 3247, 291, 292, 293, 304, 311, 327, 
    514, 297, 298, 501, 300, 1675, 1676, 
    2242, 2243, 2244, 768, 769, 2250, 3156, 
    771, 2103, 2105, 2108, 2109, 2114, 2129, 
    2135, 2140, 2161, 2163, 2192, 2197, 
    2221, 2227, 2235, 766
  )

Query time 0.00087

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "93.61"
    },
    "table": {
      "table_name": "jmj_product_feature_variants",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "variant_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 39,
      "rows_produced_per_join": 39,
      "filtered": "100.00",
      "index_condition": "(`jmj_test`.`jmj_product_feature_variants`.`variant_id` in (3246,3247,291,292,293,304,311,327,514,297,298,501,300,1675,1676,2242,2243,2244,768,769,2250,3156,771,2103,2105,2108,2109,2114,2129,2135,2140,2161,2163,2192,2197,2221,2227,2235,766))",
      "cost_info": {
        "read_cost": "85.81",
        "eval_cost": "7.80",
        "prefix_cost": "93.61",
        "data_read_per_join": "60K"
      },
      "used_columns": [
        "variant_id",
        "feature_id",
        "url",
        "color",
        "position",
        "abt__ut2_color_style",
        "abt__ut2_multicolor"
      ]
    }
  }
}

Result

variant_id feature_id url color position abt__ut2_color_style abt__ut2_multicolor
291 41 #ffffff 0 default
292 41 #ffffff 0 default
293 41 #ffffff 0 default
297 42 #ffffff 0 default
298 42 #ffffff 0 default
300 43 #ffffff 0 default
304 44 #ffffff 0 default
311 44 #ffffff 0 default
327 45 #ffffff 0 default
501 85 #ffffff 1 default
514 89 #ffffff 2 default
766 132 #ffffff 1 default
768 133 #ffffff 11 default
769 133 #ffffff 12 default
771 133 #ffffff 15 default
1675 133 #ffffff 1 default
1676 133 #ffffff 2 default
2103 280 #000000 0 default
2105 280 #808080 23 default
2108 280 #d3d3d3 31 default
2109 280 #dcdcdc 32 default
2114 280 #00008b 55 default
2129 280 #f8f8ff 112 default
2135 280 #7fffd4 134 default
2140 280 #5f9ea0 145 default
2161 280 #90ee90 233 default
2163 280 #f0fff0 241 default
2192 280 #ff8c00 360 default
2197 280 #f08080 372 default
2221 280 #483d8b 491 default
2227 280 #8a2be2 510 default
2235 280 #fffaf0 547 default
2242 133 #ffffff 3 default
2243 133 #ffffff 4 default
2244 133 #ffffff 5 default
2250 133 #ffffff 13 default
3156 133 #ffffff 15 default
3246 31 #ffffff 130 default
3247 31 #ffffff 131 default