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 (
    22172, 2873, 2854, 22268, 1942, 2857
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'vi'

Query time 0.00364

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": 8,
          "filtered": 100,
          "index_condition": "cscart_seo_names.object_id in (22172,2873,2854,22268,1942,2857) 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
1942 tat-vo-cao-co-theu-tay 98/317
2854 khung-tranh-theu-tay-net-dep-van-vat-dat-theo-yeu-cau 105/193
2857 khung-tranh-theu-tay-dem-huyen-bi 105/193
2873 mu-noi-theu-vi 105/193
22172 khan-turban-theu-vintage-3-trong-1 99/146
22268 the-danh-dau-trang-theu 106/197