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 (
    5589, 5447, 4365, 31886, 5469, 4468, 
    4358, 5464, 5474, 5962, 4464, 4364, 
    4466, 31897, 47280, 4359, 5481, 5459, 
    31896, 48032, 4357, 48322, 31892, 31890, 
    4467, 47088, 31898, 5483, 47090, 48033, 
    48030, 48037
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'vi'

Query time 0.01125

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": 44,
          "filtered": 100,
          "index_condition": "cscart_seo_names.object_id in (5589,5447,4365,31886,5469,4468,4358,5464,5474,5962,4464,4364,4466,31897,47280,4359,5481,5459,31896,48032,4357,48322,31892,31890,4467,47088,31898,5483,47090,48033,48030,48037) 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
4357 mo-hinh-thuyen-lucky-c200.t10-canh-buom-lich-12-to 105/191
4358 mo-hinh-thuyen-lucky-luot-song-c200.t8-canh-buom-lich-12-to 105/191
4359 mo-hinh-thuyen-lucky-c200.t9-canh-buom-lich-12-to 105/191
4364 mo-hinh-thuyen-lucky-l380.t2-canh-buom-doi-vai 105/191
4365 mo-hinh-thuyen-lucky-l380.t4-de-mica-canh-buom-doi-vai 105/191
4464 mo-hinh-thuyen-lucky-c200.t4-canh-buom-vai 105/191
4466 mo-hinh-thuyen-lucky-c200.t3-canh-buom-vai 105/191
4467 mo-hinh-thuyen-c250.t11-canh-buom-vai 105/191
4468 mo-hinh-du-thuyen-buom-tren-bien-epoxy-l600.t4 105/191
5447 mo-hinh-du-thuyen-lucky-l600.t6-canh-buom-vai-de-go-mica 105/191
5459 mo-hinh-thuyen-mui-nhon-lucky-l380.t1-canh-buom-vai 105/191
5464 mo-hinh-thuyen-lucky-c300.t10-luot-song-canh-buom-vai 105/191
5469 mo-hinh-du-thuyen-lucky-c300.t7-de-go-lim-canh-buom-vai 105/191
5474 mo-hinh-thuyen-lucky-c300.t8-de-go-mica-canh-buom-vai 105/191
5481 mo-hinh-thuyen-lucky-c200.t3-canh-buom-vai-vi 105/191
5483 mo-hinh-thuyen-lucky-c200.t4-canh-buom-vai-vi 105/191
5589 trang-phuc-bup-be-sua 105/191
5962 mau-l380.p1-canh-buom-in-tranh-chu-tranh-mo-hinh-thuyen-lucky 105/191
31886 bup-be-len-hana-hoa-tra 105/191
31890 bup-be-len-hana-mai-anh-dao 105/191
31892 bup-be-len-hana-trai-hong-vang 105/191
31896 bup-be-vai-hana-hoc-sinh 105/191
31897 bup-be-vai-hana-mac-do-dan-toc 105/191
31898 bup-be-vai-hana-yem-xanh 105/191
47088 mo-hinh-ngoi-nha-nho-bang-go-lua-ven-bien-ma-ng-0106 105/191
47090 mo-hinh-nha-bang-go-lua-ma-ng-0101 105/191
47280 chu-lun-thu-cong-bang-len-nha-an-hanoi 101/166
48030 bo-kit-tu-lam-lot-ly-ghep-gom-cho-be-quang-minh-mosaic 110/213
48032 tet-2024-den-long-bo-kit-tu-lam-tranh-ghep-gom-cho-be-quang-minh-mosaic 110/211
48033 tet-2024-meo-than-bo-kit-tu-lam-tranh-ghep-gom-cho-be-quang-minh-mosaic 110/211
48037 tet-2024-lan-su-rong-bo-kit-tu-lam-tranh-ghep-gom-cho-be-quang-minh-mosaic 110/213
48322 nam-cham-mo-hinh-xe-banh-mi-viet-nam-bst-little-viet-nam-nha-tin 105/191