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 (
    1896, 50216, 40451, 49588, 2320, 2319, 
    35256, 47632, 45283, 46822, 6659, 50182, 
    48823, 46585, 15457, 40927, 49012, 
    47903, 43817, 1894, 49873, 6358, 6357, 
    41341, 35279, 47597, 1767, 18608, 1057, 
    5790, 17265, 41340
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'vi'

Query time 0.01288

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_seo_names",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "dispatch"],
          "key": "PRIMARY",
          "key_length": "206",
          "used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
          "rows": 37,
          "filtered": 100,
          "index_condition": "cscart_seo_names.object_id in (1896,50216,40451,49588,2320,2319,35256,47632,45283,46822,6659,50182,48823,46585,15457,40927,49012,47903,43817,1894,49873,6358,6357,41341,35279,47597,1767,18608,1057,5790,17265,41340) and cscart_seo_names.`type` = 'p' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'vi'"
        }
      }
    ]
  }
}

Result

product_id seo_name seo_path
1057 vi-dung-ho-chieu-da-bo 100/160
1767 but-bi-tre-khac-logo 106/196
1894 but-go-sua-khac-ten-kem-hop 106/196
1896 but-go-phong-khac-ten-kem-hop 106/196
2319 op-da-airpods-thu-cong-hoa-tiet-rong-nha-ly 99/152
2320 op-da-airpods-thu-cong-ngu-ho 99/152
5790 hop-qua-socola-handmade-luv-choc-a-lot 95/114
6357 hop-qua-wellness 412
6358 hop-qua-snack-and-tea 95/119
6659 tranh-vai-trang-tri-in-theo-yeu-cau 101/166
15457 hop-qua-xa-phong-thu-cong-tay-da-chet 110/210
17265 hop-qua-tra-thao-moc-don-hu-lon 96/122
18608 bao-goi-lua-satin-cao-cap-that-no-50-x-70cm 98/318
35256 tag-da-thu-cong-hai-lop 100/154
35279 ly-giu-nhiet-khac-ten 110/315/321
40451 moc-khoa-doi-heartlight-moc-chia-khoa-da-ve-tay-bst-mck-light 99/149
40927 set-qua-5-hu-nen-thom-mini 101/169
41340 xe-ca-vien-nam-cham-hit-tu-lanh-bst-xe-day-hang-rong-sai-gon 105/191
41341 xe-bap-xao-nam-cham-hit-tu-lanh-bst-xe-day-hang-rong-sai-gon 105/191
43817 bo-qua-tang-tu-tre-khac-chu-theo-yeu-cau-binh-giu-nhiet-va-ly-tre 110/212
45283 vi-dung-the-da-bo-dang-basic 100/154
46585 set-qua-tang-nen-thom-oai-huong-hu-thuy-tinh 101/169
46822 vi-da-nam 100/160
47597 tranh-hoa-giay-handmade-trang-tri-hoa-sen-thu-phap-maypaperflower-khung-tranh-go-size-25x25cm 101/166
47632 tranh-hoa-giay-handmade-trang-tri-hoa-sen-maypaperflower-khung-tranh-go-size-25x25cm 101/166
47903 hop-qua-tet-atiso-huu-co-combo-3-lartis-farm 95/214
48823 goi-ke-tay-hat-lanh-love-yourself-phien-ban-gioi-han 103/183
49012 hop-qua-minty-box-hop-qua-thu-gian-hop-qua-cham-soc-ban-than-qua-tang-mui-huong-goi-chuom-thao-moc-xit-thom-vai-va-khong-gian 412
49588 bat-lua-nghe-thuat-khac-ten-theo-yeu-cau 99/153
49873 goi-chuom-mat-oai-huong 103/184
50182 den-ngu-lam-theo-yeu-cau-anh-sang-de-chiu-tuy-chinh-theo-so-thich-thiet-ke-toi-gian-trang-tri-phong-ngu-san-pham-thu-cong-clone 101/166
50216 tranh-bo-hoa-kho-chuc-mung-sinh-nhat 101/165