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 (
    398, 1981, 1716, 40446, 31637, 5278, 
    855, 1277, 5786, 47020, 47023, 41339, 
    47022, 31635, 1580, 3876, 1975, 48980, 
    120, 43824, 40443, 27353, 37850, 2873, 
    3577, 2854, 1538, 3713, 41590, 40149, 
    6369, 2290
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'vi'

Query time 0.00738

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": 38,
          "filtered": 100,
          "index_condition": "cscart_seo_names.object_id in (398,1981,1716,40446,31637,5278,855,1277,5786,47020,47023,41339,47022,31635,1580,3876,1975,48980,120,43824,40443,27353,37850,2873,3577,2854,1538,3713,41590,40149,6369,2290) 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
120 tra-nam-linh-chi 96/122
398 ca-phe-hoa-tan-3-trong-1 96/123
855 vong-tay-tram-huong-moc 99/142
1277 ca-phe-rang-xay-500gr 96/123
1538 mat-ong-rung 95/117
1580 moc-lien-tra 96/122
1716 set-ca-phe-xuan-thi 96/123
1975 set-2-nen-thom-falling-in-love-hu-thiec-sap-dau-nanh 110/210
1981 tra-tai-meo 96/122
2290 toner-hoa-sen-trang-co-hue 102/172
2854 khung-tranh-theu-tay-net-dep-van-vat-dat-theo-yeu-cau 105/193
2873 mu-noi-theu-vi 105/193
3577 ly-gom-su-y-thanh 101/340
3713 hop-qua-nuoc-hoa-bo-tinh-dau-khuech-tan-va-sap-thom 110/210
3876 tuong-trau-gom-sanh-mau-vang-and-xanh-la-bst-me-con-trau 101/166
5278 the-soul-tra-tinh-than-tui-zip-10g 96/122
5786 socola-boc-hanh-nhan-3-vi 95/114
6369 hop-qua-let-love-sparkle 412
27353 mau-mix-nhieu-hoa-tranh-hoa-kho-dang-tron 101/165
31635 tra-hoa-cuc-va-ky-tu-tra-hoa-thien-nhien 96/122
31637 tra-hoa-hong-va-tra-den-tra-hoa-thien-nhien 96/122
37850 chen-gom-su-hoai-hoa-mau-don-xanh-coban 101/313
40149 bo-suu-tap-nghe-thuat-2-bat-lua-cricket 105/195
40443 tuat-moc-chia-khoa-da-ve-tay-bst-12-con-giap-vi 99/149
40446 moonlight-moc-chia-khoa-da-ve-tay-bst-mck-light-vi 99/149
41339 xe-hu-tiu-go-nam-cham-hit-tu-lanh-bst-xe-day-hang-rong-sai-gon 105/191
41590 keo-socola-bonbon-nhieu-vi-hu-thuy-tinh 95/114
43824 tra-co-thu-nhieu-loai-100g-tra-xanh-hoa-tra-bach-tra 96/122
47020 vong-tay-thep-hoa-hanh-nhan-bst-vong-da-hoi-hoa 99/142
47022 vong-tay-thep-the-kiss-bst-vong-da-hoi-hoa 99/142
47023 vong-tay-thep-tieng-thet-bst-vong-da-hoi-hoa 110/210
48980 tui-vai-linen-phien-ban-gioi-han-phong-cach-han-quoc-tui-vai-vintage 100/161