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 (
    3587, 5549, 34671, 27863, 2964, 31640, 
    40440, 3586, 45507, 389, 1713, 44422, 
    2278, 3874, 2514, 2287, 5569, 46751, 
    6059, 48769, 31630, 6060, 4440, 18258, 
    14822, 18201, 2461, 31909, 31908, 2505, 
    4441, 6099
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'vi'

Query time 0.00850

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 (3587,5549,34671,27863,2964,31640,40440,3586,45507,389,1713,44422,2278,3874,2514,2287,5569,46751,6059,48769,31630,6060,4440,18258,14822,18201,2461,31909,31908,2505,4441,6099) 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
389 so-tay-giay-kraft-bia-may-anh-vintage 106/197
1713 phin-ca-phe-cao-cap 101/340
2278 banh-phuc-linh 95/116
2287 mut-nghe-truyen-thong 95/111
2461 nen-thom-gourmand 101/169
2505 bia-craft-coffee-vanilla-porter 96/120
2514 bia-craft-summer-hefeweizen-lon-330ml 96/120
2964 bia-craft-te-te-juicy-peach-ale 96/120
3586 ly-gom-su-n.y.avenue 101/340
3587 ly-gom-su-matrix-d1 101/340
3874 tuong-trau-gom-sanh-mau-xanh-ngoc-bst-me-con-trau 101/166
4440 bat-lua-tranh-meo 105/195
4441 bat-lua-tranh-nghe-thuat 105/195
5549 giong-gia-ca-phe-robusta-blend-chat-luong-cao 96/123
5569 ca-phe-blend-7-3-arabica-robusta-culi-vi-ban 96/123
6059 tra-hoa-tan-day-thia-canh 96/122
6060 tra-hoa-tan-hoa-cuc 96/122
6099 tra-kombucha-tinhthantre-250ml 96/121
14822 bo-kit-lam-nen-thom-tao-hinh-sua-chua-topping-trai-cay-banh-keo 101/169
18201 tra-hoa-cuc-chi 96/122
18258 bat-lua-tranh-chua-son-lam 105/195
27863 topping-trang-tri-nen 101/169
31630 ca-phe-sua-da-hoa-tan 96/123
31640 mat-ong-hoa-ca-phe-nguyen-chat-bb-highland 95/117
31908 tra-hoa-bup-giam-hana-dalat 96/122
31909 tra-hoa-lai-hana-dalat 96/122
34671 tra-den-cao-cap 96/122
40440 mui-moc-chia-khoa-da-ve-tay-bst-12-con-giap-vi 99/149
44422 hop-tra-hoa-thao-moc-cup-of-well-being-combo-moi-ngay 96/122
45507 so-tay-bia-hoa-tiet-kien-truc-viet-giay-tron 106/197
46751 ca-phe-hat-rang-phin-blend-nguyen-hat-xay-san 96/123
48769 ly-tre-khac-ten-theo-yeu-cau-qua-tang-xanh 101/340