SELECT 
  * 
FROM 
  jmj_product_feature_variants 
WHERE 
  variant_id IN (
    3246, 3247, 595, 601, 604, 605, 621, 620, 
    624, 616, 618, 626, 627, 629, 634, 635, 
    455, 1688, 1689, 1690, 1691, 1692, 1693, 
    1694, 2103, 2104, 2106, 2107, 2108, 
    2109, 2111, 2112, 2113, 2131, 2134, 
    2138, 2143, 2144, 2147, 2151, 2153, 
    2154, 2164, 2175, 2176, 2177, 2179, 
    2180, 2181, 2185, 2186, 2190, 2191, 
    2207, 2218, 2220, 2221, 3238, 766
  )

Query time 0.00441

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "141.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": 59,
      "rows_produced_per_join": 59,
      "filtered": "100.00",
      "index_condition": "(`jmj_test`.`jmj_product_feature_variants`.`variant_id` in (3246,3247,595,601,604,605,621,620,624,616,618,626,627,629,634,635,455,1688,1689,1690,1691,1692,1693,1694,2103,2104,2106,2107,2108,2109,2111,2112,2113,2131,2134,2138,2143,2144,2147,2151,2153,2154,2164,2175,2176,2177,2179,2180,2181,2185,2186,2190,2191,2207,2218,2220,2221,3238,766))",
      "cost_info": {
        "read_cost": "129.81",
        "eval_cost": "11.80",
        "prefix_cost": "141.61",
        "data_read_per_join": "91K"
      },
      "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
455 71 #ffffff 0 default
595 105 #ffffff 0 default
601 105 #ffffff 0 default
604 106 #ffffff 0 default
605 106 #ffffff 0 default
616 107 #ffffff 2 default
618 107 #ffffff 4 default
620 108 #ffffff 0 default
621 108 #ffffff 0 default
624 108 #ffffff 0 default
626 109 #ffffff 2 default
627 109 #ffffff 3 default
629 110 #ffffff 0 default
634 110 #ffffff 0 default
635 110 #ffffff 0 default
766 132 #ffffff 1 default
1688 255 #ffffff 0 default
1689 255 #ffffff 0 default
1690 255 #ffffff 0 default
1691 255 #ffffff 0 default
1692 255 #ffffff 0 default
1693 255 #ffffff 0 default
1694 255 #ffffff 0 default
2103 280 #000000 0 default
2104 280 #696969 17 default
2106 280 #a9a9a9 25 default
2107 280 #c0c0c0 27 default
2108 280 #d3d3d3 31 default
2109 280 #dcdcdc 32 default
2111 280 #708090 38 default
2112 280 #191970 52 default
2113 280 #000080 53 default
2131 280 #e0ffff 114 default
2134 280 #66cdaa 132 default
2138 280 #00ced1 141 default
2143 280 #2f4f4f 151 default
2144 280 #2e8b57 161 default
2147 280 #808000 172 default
2151 280 #006400 182 default
2153 280 #8fbc8f 201 default
2154 280 #9acd32 209 default
2164 280 #f5fffa 242 default
2175 280 #ffe4b5 257 default
2176 280 #ffdab9 260 default
2177 280 #ffdead 261 default
2179 280 #f0e68c 266 default
2180 280 #ffff00 272 default
2181 280 #ffd700 279 default
2185 280 #bdb76b 301 default
2186 280 #daa520 308 default
2190 280 #8b4513 339 default
2191 280 #d2691e 352 default
2207 280 #ffe4e1 428 default
2218 280 #ba55d3 475 default
2220 280 #7b68ee 488 default
2221 280 #483d8b 491 default
3238 280 #6f4e37 600 default
3246 31 #ffffff 130 default
3247 31 #ffffff 131 default