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 (
    47655, 27359, 34555, 31638, 33312, 31633, 
    5300, 5991, 5297, 1980, 31634, 31639, 
    3570, 3569, 31636, 1979, 1088, 17259, 
    398, 1981, 31637, 5278, 31635, 1580, 
    48980, 120, 37850, 1538, 48558, 15322, 
    6274, 40381
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'vi'

Query time 0.00518

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": 43,
          "filtered": 100,
          "index_condition": "cscart_seo_names.object_id in (47655,27359,34555,31638,33312,31633,5300,5991,5297,1980,31634,31639,3570,3569,31636,1979,1088,17259,398,1981,31637,5278,31635,1580,48980,120,37850,1538,48558,15322,6274,40381) 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
1088 guong-theu-tay 99/151
1538 mat-ong-rung 95/117
1580 moc-lien-tra 96/122
1979 the-dream-tra-ngu-ngon 96/122
1980 tra-co-ngot 96/122
1981 tra-tai-meo 96/122
3569 hu-gia-vi-gom-su-pipa 101/340
3570 tho-gom-su-kem-nap-river-of-ganga 101/340
5278 the-soul-tra-tinh-than-tui-zip-10g 96/122
5297 hop-qua-voi-3-hu-tra-thao-moc-lon 110/315/323
5300 hop-qua-voi-3-hu-tra-thao-moc-mix-lon 110/315/323
5991 kombucha-luu-do 96/121
6274 dau-xa-buoi-dua-co-bo 102/173
15322 dau-goi-bo-ket-thao-moc-co-bo 102/173
17259 hop-qua-tra-thao-moc-mix-hu-lon 96/122
27359 vong-hoa-tranh-hoa-kho-dang-chu-nhat 101/165
31633 tra-hoa-atiso-do-va-trai-cay-tra-hoa-thien-nhien 96/122
31634 tra-bac-ha-oolong-va-tra-xanh-tra-hoa-thien-nhien 96/122
31635 tra-hoa-cuc-va-ky-tu-tra-hoa-thien-nhien 96/122
31636 tra-oolong-sa-va-gung-tra-hoa-thien-nhien 96/122
31637 tra-hoa-hong-va-tra-den-tra-hoa-thien-nhien 96/122
31638 nu-hoa-hong-tay-tang-tra-hoa-thien-nhien 96/122
31639 mat-ong-hoa-ca-phe-nguyen-chat 95/117
33312 hop-qua-tang-moc-truly-hue-set-2 110/315/323
34555 hop-tra-hoa-sen-mot-bong 96/122
37850 chen-gom-su-hoai-hoa-mau-don-xanh-coban 101/313
40381 nhuan-phe-moc-tra-set-8-hop 96/122
47655 hop-qua-phap-lam-moc-truly-hues-2023-mon-qua-co-do-moc-truly-hue 110/213
48558 day-chuyen-bac-non-la-viet-nam-tiem-bac-minh-tam 99/144
48980 tui-vai-linen-phien-ban-gioi-han-phong-cach-han-quoc-tui-vai-vintage 100/161