SELECT 
  cscart_seo_names.object_id AS product_id, 
  cscart_seo_names.name AS seo_name, 
  cscart_seo_names.path AS seo_path 
FROM 
  cscart_seo_names 
WHERE 
  cscart_seo_names.object_id IN (
    51567, 51480, 51565, 51564, 51479, 139, 
    129, 51566, 51301, 51494, 51, 50, 51497, 
    51498, 51495, 51563, 53, 22713, 21, 
    22714, 22712, 46, 22715, 22716, 51496, 
    21567, 91, 50989, 105, 48, 49, 92, 137, 
    88, 126, 31, 51358, 115, 80, 37, 11, 140, 
    41, 30, 90, 38, 124, 81, 56, 82, 116, 117, 
    125, 106, 39, 193, 40, 22710, 22711, 
    17, 57, 122, 58, 5
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'ru' 
  AND (
    cscart_seo_names.company_id = 1 
    OR cscart_seo_names.company_id = 0
  )

Query time 0.00114

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "89.61"
    },
    "table": {
      "table_name": "cscart_seo_names",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "dispatch"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "object_id",
        "type",
        "dispatch",
        "lang_code",
        "company_id"
      ],
      "key_length": "210",
      "rows_examined_per_scan": 128,
      "rows_produced_per_join": 128,
      "filtered": "100.00",
      "index_condition": "((`test_uchur_k`.`cscart_seo_names`.`object_id` in (51567,51480,51565,51564,51479,139,129,51566,51301,51494,51,50,51497,51498,51495,51563,53,22713,21,22714,22712,46,22715,22716,51496,21567,91,50989,105,48,49,92,137,88,126,31,51358,115,80,37,11,140,41,30,90,38,124,81,56,82,116,117,125,106,39,193,40,22710,22711,17,57,122,58,5)) and (`test_uchur_k`.`cscart_seo_names`.`type` = 'p') and (`test_uchur_k`.`cscart_seo_names`.`dispatch` = '') and (`test_uchur_k`.`cscart_seo_names`.`lang_code` = 'ru') and ((`test_uchur_k`.`cscart_seo_names`.`company_id` = 1) or (`test_uchur_k`.`cscart_seo_names`.`company_id` = 0)))",
      "cost_info": {
        "read_cost": "76.81",
        "eval_cost": "12.80",
        "prefix_cost": "89.61",
        "data_read_per_join": "217K"
      },
      "used_columns": [
        "name",
        "object_id",
        "company_id",
        "type",
        "dispatch",
        "path",
        "lang_code"
      ]
    }
  }
}

Result

product_id seo_name seo_path
5 kepka-uchur-round-patch-cv-chernyy-bez-setki 40
11 shapka-uchur-beanie-cv-black 40
17 kepka-uchur-low-cap-cv-saas 40
21 kurtka-uchur-all-weather-jacket-pro-cv-taas 40
30 termobele-uchur-mens-thermal-underwear-cv-saas 40
31 termobele-uchur-mens-thermal-underwear-cv-taas 40
37 kurtka-uchur-softshell-jacket-cv-black 40
38 kurtka-uchur-softshell-jacket-cv-grey 40
39 kurtka-uchur-softshell-jacket-cv-olive 40
40 kurtka-uchur-softshell-jacket-cv-saas 40
41 kurtka-uchur-softshell-jacket-cv-taas 40
46 termobele-uchur-arctic-thermo-pro-cv-chernyy 40
48 kurtka-uchur-warm-lite-down-cv-saas 40
49 kurtka-uchur-warm-lite-down-cv-taas 40
50 kostyum-uchur-bulchut-3v1-cv-saas 40
51 kostyum-uchur-bulchut-3v1-cv-taas 40
53 kurtka-uchur-all-weather-jacket-pro-cv-saas 40
56 shapka-uchur-traveler-cv-black 40
57 kepka-uchur-street-cv-saas 40
58 kepka-uchur-street-cv-taas 40
80 botinki-uchur-traveler-cv-black-r-r-41 40
81 shapka-uchur-hunter-cv-taas 40
82 shapka-uchur-hunter-cv-saas 40
88 dzhemper-uchur-eclipse-fleece-cv-chernyy 40
90 shtany-uchur-all-weather-pants-pro-cv-taas 40
91 shtany-uchur-all-weather-pants-pro-cv-saas 40
92 kurtka-uchur-warm-lite-down-cv-chernyy 40
105 kepka-uchur-visor-cv-saas 40
106 kepka-uchur-visor-cv-taas 40
115 shapka-uchur-icon-wool-cv-bezhevyy 40
116 shapka-uchur-icon-wool-cv-seryy 40
117 shapka-uchur-icon-wool-cv-chernyy 40
122 kepka-uchur-round-patch-logo-grey-cv-chernyy-bez-setki 40
124 futbolka-zhenskaya-uchur-tuymaada-cotton-black-t-shirt 40
125 futbolka-zhenskaya-uchur-tuymaada-cotton-gray-t-shirt 40
126 shapka-uchur-ski-cv-chernyy 40
129 tolstovka-s-kapyushonom-uchur-horizon-cv-chernyy 40
137 futbolka-uchur-terra-cv-chernyy 40
139 tolstovka-s-kapyushonom-uchur-terra-cv-chernyy 40
140 zhilet-uchur-weave-core-cv-chernyy 40
193 shtany-uchur-all-weather-pants-pro-cv-taas-40x30-ru 40
21567 perchatki-uchur-warmshell-cv-chernyy 5/52/29
22710 trusy-uchur-flex-cv-chernyy-ru 5/18
22711 termoshtany-uchur-active-lite-cv-chernyy 5/18
22712 futbolka-sportivnaya-uchur-totem-animal-wolf-cv-chernyy 5/7
22713 futbolka-sportivnaya-uchur-totem-animal-black-storm-cv-chernyy 5/7
22714 futbolka-sportivnaya-uchur-totem-animal-eagle-cv-chernyy 5/7
22715 futbolka-sportivnaya-uchur-totem-animal-bear-cv-chernyy 5/7
22716 futbolka-sportivnaya-uchur-totem-animal-raven-cv-chernyy 5/7
50989 perchatki-uchur-wintersoft-cv-chernyy 5/52/29
51301 tolstovka-s-kapyushonom-uchur-ridge-cv-chernyy 40
51358 termobele-zhenskoe-uchur-haarchaana-cv-chernyy-razmer-l 40
51479 termokruzhka-uchur-terra-cv-chernyy-400ml 2/3/4
51480 termokruzhka-uchur-ethno-v2-cv-chernyy-620ml 2/3/4
51494 shopper-uchur-logo-cv-chernyy 2/204
51495 shopper-uchur-terra-cv-chernyy 40
51496 panama-uchur-safari-cv-bezhevyy 5/50/33
51497 panama-uchur-safari-cv-chernyy 5/50/33
51498 panama-uchur-safari-cv-seryy 5/50/33
51563 kalendar-uchur-halandaar-2026-god 1
51564 shtany-uteplennye-uchur-expedition-cv-chernyy 5/9
51565 kurtka-uteplennaya-uchur-expedition-cv-chernyy 40
51566 bryuki-muzhskie-uteplennye-uchur-arctic-cv-chernyy 5/9
51567 puhovaya-kurtka-uchur-cloud-cv-chernyy 5/10