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 (
    50216, 50194, 40927, 6372, 6358, 6357, 
    31633, 1975, 2305, 49192, 2303, 6354, 
    31965, 26895, 26894, 38797, 26872, 
    47567, 26871, 26876, 26870, 26874, 
    26878, 26885, 26875, 26879, 26884, 
    1972, 44424, 5141, 297, 51
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'vi'

Query time 0.01041

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": 34,
          "filtered": 100,
          "index_condition": "cscart_seo_names.object_id in (50216,50194,40927,6372,6358,6357,31633,1975,2305,49192,2303,6354,31965,26895,26894,38797,26872,47567,26871,26876,26870,26874,26878,26885,26875,26879,26884,1972,44424,5141,297,51) 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
51 ao-thun-hao-si-phuong 98/317
297 vong-co-da-phong-thuy 99/144
1972 tron-bo-4-hu-nen-thom-the-meaning-of-life-sap-dau-nanh 101/169
1975 set-2-nen-thom-falling-in-love-hu-thiec-sap-dau-nanh 110/210
2303 set-2-hu-nen-thom-deforest-symphony 101/169
2305 set-qua-hoa-and-nen-thom-bo-suu-tap-for-my-beloved-vi 110/210
5141 nen-thom-la 101/169
6354 hop-qua-the-rose 412
6357 hop-qua-wellness 412
6358 hop-qua-snack-and-tea 95/119
6372 hop-qua-nice-night 412
26870 metal-nen-phong-thuy-he-kim 101/169
26871 wood-nen-phong-thuy-he-moc 101/169
26872 fire-nen-phong-thuy-he-hoa 101/169
26874 earth-nen-phong-thuy-he-tho 101/169
26875 nen-thom-chanh-sa 101/169
26876 nen-thom-hoa-lai 101/169
26878 nen-thom-go-teak 101/169
26879 nen-thom-go-va-da 101/169
26884 set-4-nen-tealight-hinh-tim-trang-tri 101/169
26885 set-4-nen-macaron 101/169
26894 nen-banh-sinh-nhat 101/169
26895 nen-cupcake 101/169
31633 tra-hoa-atiso-do-va-trai-cay-tra-hoa-thien-nhien 96/122
31965 hop-qua-4-nen-thom-xmas-mood-hu-thiec 101/169
38797 thiep-for-you 106/199
40927 set-qua-5-hu-nen-thom-mini 101/169
44424 nen-thom-trang-tri-hoa-kho 101/169
47567 hop-qua-afternoon-tea-the-joy-box 412
49192 hop-qua-hoa-and-nen-thom-means-to-me 101/169
50194 qua-tang-nen-thom-custom-thong-diep-mon-qua-doc-dao-cham-den-trai-tim 101/169
50216 tranh-bo-hoa-kho-chuc-mung-sinh-nhat 101/165