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 (
    1272, 31868, 40928, 5828, 46592, 31870, 
    31869, 31867, 28439, 47565, 1762, 47973, 
    31964, 49320, 29736, 29734, 47620, 
    49005, 50195, 50303, 50192, 50316, 
    50297, 50348, 50299, 50298, 50287, 
    50305, 50290, 50286, 50621, 50292
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'vi'

Query time 0.04395

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": 33,
          "filtered": 100,
          "index_condition": "cscart_seo_names.object_id in (1272,31868,40928,5828,46592,31870,31869,31867,28439,47565,1762,47973,31964,49320,29736,29734,47620,49005,50195,50303,50192,50316,50297,50348,50299,50298,50287,50305,50290,50286,50621,50292) 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
1272 tinh-dau-thien-nhien-vi-3 103/181
1762 tui-than-hoat-tinh-khu-mui-giay 103/182
5828 set-2-nen-thom-krem-hu-thuy-tinh-sap-dau-nanh 101/169
28439 peace-nen-thom-bac-cotton 101/169
29734 nen-thom-hi-there-its-me-here-is-your-sun 101/169
29736 nen-thom-healing 101/169
31867 so-tay-giay-do-hinh-oai-huong 106/197
31868 so-tay-giay-do-hoa-sen 106/197
31869 so-tay-giay-do-bap-cai-tim 106/197
31870 so-tay-giay-do-hoa-da-quy 106/197
31964 hop-qua-tang-2-nen-thom-giang-sinh-chia.kandles-hu-thiec 101/169
40928 set-nen-thom-tinh-dau 101/169
46592 my-life-lessons-so-tay-bai-hoc-ca-nhan-va-phat-trien-ban-than 106/197
47565 hop-qua-love-rosie-the-joy-box 412
47620 hop-qua-merry-and-bright-the-joy-box-vi 412
47973 nen-thom-thu-cong-mui-huong-thu-gian-hu-270g-being-home 101/169
49005 hop-qua-treat-yourself-qua-tang-cho-nu-qua-tang-huong-thom-qua-tang-thu-gian-goi-chuom-thao-moc-xit-vai-nen-thom 412
49320 hop-qua-french-rose-qua-tang-mui-huong-qua-tang-lang-man-qua-tang-sang-trong-nen-thom 412
50192 qua-tang-nen-thom-coolest-bitch-i-know 101/169
50195 qua-tang-nen-thom-cang-lon-cang-thay-minh-khong-con-nho-nua 101/169
50286 hop-qua-pretty-healthy 412
50287 hop-qua-rosie-lady 412
50290 hop-qua-awake-every-sense 412
50292 hop-qua-essential-the-curator 412
50297 hop-qua-vietnams-story 412
50298 hop-qua-vietnam-memory 412
50299 hop-qua-vietnam-corner-tea 412
50303 hop-qua-simplicity 412
50305 hop-qua-flavors-of-vietnam 412
50316 hop-qua-secret-beauty-hoa-kho-va-nen-thom-hop-qua-hinh-trai-tim-do-ruc-yeu-thuong-bst-bloom-in-hop-qua-20-10-qua-tang-ngay-phu-nu 412
50348 tranh-dat-set-cap-doi-20cm 105/195
50621 hop-qua-nen-thom-kem-sticker-womens-right 412