SELECT 
  * 
FROM 
  jmj_product_feature_variants 
WHERE 
  variant_id IN (
    3230, 3246, 3247, 2103, 2104, 2105, 2108, 
    2111, 2112, 2113, 2114, 2115, 2116, 
    2117, 2125, 2126, 2127, 2148, 2153, 
    2162, 2168, 2174, 2179, 2182, 2183, 
    2185, 2191, 2192, 3220, 3221, 3222, 
    3223, 3224, 3225, 3226, 3227, 3228, 
    3229, 766
  )

Query time 0.00092

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 (3230,3246,3247,2103,2104,2105,2108,2111,2112,2113,2114,2115,2116,2117,2125,2126,2127,2148,2153,2162,2168,2174,2179,2182,2183,2185,2191,2192,3220,3221,3222,3223,3224,3225,3226,3227,3228,3229,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
766 132 #ffffff 1 default
2103 280 #000000 0 default
2104 280 #696969 17 default
2105 280 #808080 23 default
2108 280 #d3d3d3 31 default
2111 280 #708090 38 default
2112 280 #191970 52 default
2113 280 #000080 53 default
2114 280 #00008b 55 default
2115 280 #0000cd 60 default
2116 280 #0000ff 63 default
2117 280 #4169e1 70 default
2125 280 #add8e6 104 default
2126 280 #b0c4de 105 default
2127 280 #e6e6fa 109 default
2148 280 #556b2f 173 default
2153 280 #8fbc8f 201 default
2162 280 #98fb98 235 default
2168 280 #f5f5dc 248 default
2174 280 #f5deb3 256 default
2179 280 #f0e68c 266 default
2182 280 #ffa500 288 default
2183 280 #deb887 294 default
2185 280 #bdb76b 301 default
2191 280 #d2691e 352 default
2192 280 #ff8c00 360 default
3220 431 #ffffff 0 default
3221 431 #ffffff 0 default
3222 431 #ffffff 0 default
3223 431 #ffffff 0 default
3224 431 #ffffff 0 default
3225 431 #ffffff 0 default
3226 431 #ffffff 0 default
3227 431 #ffffff 0 default
3228 431 #ffffff 0 default
3229 431 #ffffff 0 default
3230 31 #ffffff 118 default
3246 31 #ffffff 130 default
3247 31 #ffffff 131 default