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 (
    38750, 31914, 48179, 4172, 859, 4171, 
    4170, 2801, 28127, 2761, 862, 6187, 
    4016, 6086, 4180, 4175, 6084, 31919, 
    227, 35377, 230, 33185, 31917, 6087, 
    4274, 2054, 1549, 506, 2800, 31915, 
    507, 3837
  ) 
  AND cscart_seo_names.type = "p" 
  AND cscart_seo_names.dispatch = "" 
  AND cscart_seo_names.lang_code = 'vi'

Query time 0.00503

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": 37,
          "filtered": 100,
          "index_condition": "cscart_seo_names.object_id in (38750,31914,48179,4172,859,4171,4170,2801,28127,2761,862,6187,4016,6086,4180,4175,6084,31919,227,35377,230,33185,31917,6087,4274,2054,1549,506,2800,31915,507,3837) 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
227 tinh-dau-giam-cang-thang 103/181
230 tinh-dau-cam-xuc-nong-nan 103/181
506 100-dau-dua-nguyen-chat 103/181
507 thanh-lan-dau-dua-da-nang 103/181
859 tinh-dau-sa-chanh 103/181
862 tinh-dau-cam-chanh 103/181
1549 tinh-dau-buoi-co-dac 103/181
2054 tinh-dau-xit-vai-chan-ga-goi 103/181
2761 tinh-dau-hop-huong-cam-chanh 103/181
2800 thanh-lan-dau-gio-tri-lieu 103/181
2801 thanh-lan-dau-nghe-chua-lanh 103/181
3837 tinh-dau-xong-hoi 103/181
4016 tinh-dau-giup-giai-toa-va-giam-cang-thang 103/181
4170 tinh-dau-tri-lieu-burning-woods 103/181
4171 tinh-dau-tri-lieu-inner-peace 103/181
4172 tinh-dau-tri-lieu-warm-embrace 103/181
4175 tinh-dau-tri-lieu-blooming-heart 103/181
4180 tinh-dau-cam 103/181
4274 tinh-dau-vo-buoi-hue 103/181
6084 tinh-dau-sa-chanh-huu-co-tu-toa 103/181
6086 tinh-dau-vo-buoi-tu-toa 103/181
6087 tinh-dau-tram-vi 103/181
6187 tinh-dau-que-nguyen-chat-chai-50ml 103/181
28127 tinh-dau-sa-java-vi-3 103/181
31914 tinh-dau-sa-java-vi-4 103/181
31915 tinh-dau-que-vi-4 103/181
31917 tinh-dau-huong-thao-vi-2 103/181
31919 tinh-dau-khuynh-diep-vi 103/181
33185 tinh-dau-chong-con-trung-bugger-off 103/182
35377 tinh-dau-huong-hoa 103/181
38750 nuoc-suc-mieng-ruou-cau 103/181
48179 combo-nen-thom-va-tinh-dau-saola 110/210