SELECT 
  q_seo_names.object_id AS product_id, 
  q_seo_names.name AS seo_name, 
  q_seo_names.path AS seo_path 
FROM 
  q_seo_names 
WHERE 
  q_seo_names.object_id IN (
    29240, 29310, 29311, 29382, 29659, 29663, 
    29744, 29788, 29815, 29821, 29827, 
    29846, 29856, 29888, 30308, 30385
  ) 
  AND q_seo_names.type = "p" 
  AND q_seo_names.dispatch = "" 
  AND q_seo_names.lang_code = 'en'

Query time 0.00088

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "45.41"
    },
    "table": {
      "table_name": "q_seo_names",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "dispatch"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "object_id",
        "type",
        "dispatch",
        "lang_code"
      ],
      "key_length": "206",
      "rows_examined_per_scan": 21,
      "rows_produced_per_join": 21,
      "filtered": "100.00",
      "index_condition": "((`portal`.`q_seo_names`.`object_id` in (29240,29310,29311,29382,29659,29663,29744,29788,29815,29821,29827,29846,29856,29888,30308,30385)) and (`portal`.`q_seo_names`.`type` = 'p') and (`portal`.`q_seo_names`.`dispatch` = '') and (`portal`.`q_seo_names`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "41.21",
        "eval_cost": "4.20",
        "prefix_cost": "45.41",
        "data_read_per_join": "35K"
      },
      "used_columns": [
        "name",
        "object_id",
        "type",
        "dispatch",
        "path",
        "lang_code"
      ]
    }
  }
}

Result

product_id seo_name seo_path
29240 xiaomi-mijia-vehicle-inverter-white 300/410
29310 led-usb-rechargeable-headlight-flash-bicycle-lights 300/572
29311 1200-lumen-bicycle-lights-lamp-waterproof-led-cycling-bike-bicycle-front-light-flashlight 300/572
29382 3in1-bicycle-chain-cleaner-cycling-machine-brushes-scrubber-wash-tool-kit-bicycle-chain-cleaner 300/572
29659 electric-jewellery-metal-plastic-glass-wood-engraver-pen-carve-tool 300/581
29663 twooc-electric-bicycle-bell-usb-charge-bike-cycling-120db-handlebar-ring-bell-3-mode-sounds-safety-waterproof-bike-electirc-bell 300/572
29744 25-in-1-torx-screwdriver-set-mini-repair-tool-kit-precision-screwdriver-tool-set-for-pc-glasses-mobile-phone-watch 300/581
29788 black-aluminum-alloy-bicycle-bell-road-mountain-bike-compass-bell-sound-bike-handlebar-ring-horn 300/572
29815 gub-g-85-adjustable-universal-bike-phone-stand-for-3.5-6.2inch-smartphone-aluminum-bicycle-handlebar-holder-mount-bracket 300/572
29821 black-7500lm-led-bike-lights-head-lamp-with-battery-charger-bicycle-accessories 300/572
29827 2-pcs-safty-warning-flashlight-silicone-bike-bicycle-cycling-head-front-rear-wheel-led-waterproof-bicycle-handlebar-light 300/572
29846 black-mtb-road-bicycle-bike-electronic-bell-loud-horn-cycling-hooter-siren-holder 300/572
29856 universal-outdoor-uv-protector-bike-rain-dustproof-motorcycle-cover-for-scooter-covers-waterproof-xxl 300/572
29888 gub-pro2-bicycle-handlebar-aluminium-alloy-mobile-phone-holder-for-3.5-6.2inch-smartphone-gps-mtb-bike-motorcycle-stand-extender 300/572
30308 honda-car-key-chain-leather-case-auto-zipper-keychain-bag-black 300/375/602
30385 car-hud-5.8-tft-obdii-head-up-display-digital-car-speedometer-on-board-computer-model-p12 300/375