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 (
    40824, 5554, 5779, 23406, 49306, 3774, 
    2113, 27360, 2926, 2471, 5551, 3168, 
    3663, 2294, 5553, 41170, 1429, 5834, 
    36746, 3170, 4072, 47902, 27362, 21065, 
    6560, 36399, 2085, 2087, 6561, 4894, 
    49265, 3470
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'vi'

Query time 0.01289

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 (40824,5554,5779,23406,49306,3774,2113,27360,2926,2471,5551,3168,3663,2294,5553,41170,1429,5834,36746,3170,4072,47902,27362,21065,6560,36399,2085,2087,6561,4894,49265,3470) 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
1429 khan-choang-lua-vuong 98/318
2085 mo-hinh-banh-mi-hinh-thu-de-thuong-chong-chat 105/191
2087 hmong-bag-s-tui-tote-tu-vai-gai-dau-size-nho 100/155
2113 ca-phe-decaf-colombia 96/123
2294 nuoc-gao-nep-len-men 96/120
2471 xit-ngu-ngon-still 101/163
2926 tui-bucket-day-rut-tu-jeans-tai-che 100/157
3168 tui-dung-laptop-det-nilon-tai-che 100/159
3170 tui-det-nhieu-ngan-tu-nilon-tai-che-size-l 100/157
3470 ca-phe-robusta-bo-sung-nam-hau-thu 96/123
3663 hop-qua-tang-nen-thom-kem-de-resin-lat-cam 110/210
3774 tui-tote-lon-tu-jeans-tai-che 100/155
4072 tui-tote-len-caro-hong-tim 100/155
4894 set-qua-tang-hmong-muoi-ngam-chan-xa-bong-thao-duoc-3-lo-tinh-dau 110/210
5551 giong-2-ca-phe-blend-chat-luong-cao 96/123
5553 giong-4-ca-phe-blend-chat-luong-cao 96/123
5554 giong-5-ca-phe-arabica-blend-chat-luong-cao 96/123
5779 hop-nama-chocolate-new-mix-5-vi 95/114
5834 kefir-soda-tao-gung 96/121
6560 tui-chuom-thu-gian-co-huong-thom-vi 103/183
6561 tui-chuom-thu-gian-khong-huong 103/183
21065 hard-soda-vi-xoai 96/120
23406 non-la-sen-vi 110/212
27360 hoa-trai-tim-tranh-hoa-kho-dang-chu-nhat 101/165
27362 bo-hoa-and-hoa-goc-tranh-hoa-kho-dang-chu-nhat 101/165
36399 bao-goi-om-cotton-cao-cap 101/163
36746 binh-giu-nhiet-tre 101/340
40824 goi-chuom-mat-huong-thao 103/184
41170 nuoc-mam-cot-nhi-ca-com-250ml 95/118
47902 hop-qua-tet-atiso-huu-co-combo-2-lartis-farm 96/122
49265 vi-da-mini-cho-nu 100/160
49306 bao-da-dung-ho-chieu-01 100/154