SELECT 
  cscart_product_descriptions.product_id, 
  cscart_product_descriptions.short_description, 
  IF(
    cscart_product_descriptions.short_description = '' 
    OR cscart_product_descriptions.short_description IS NULL, 
    cscart_product_descriptions.full_description, 
    ''
  ) AS full_description, 
  cscart_product_descriptions.unit_name 
FROM 
  cscart_product_descriptions 
WHERE 
  cscart_product_descriptions.product_id IN (
    5850, 5821, 5828, 5832, 5824, 3130, 8439, 
    8363
  ) 
  AND cscart_product_descriptions.lang_code = 'en'

Query time 0.00095

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "5.67"
    },
    "table": {
      "table_name": "cscart_product_descriptions",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "product_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id",
        "lang_code"
      ],
      "key_length": "9",
      "rows_examined_per_scan": 8,
      "rows_produced_per_join": 8,
      "filtered": "100.00",
      "index_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_descriptions`.`product_id` in (5850,5821,5828,5832,5824,3130,8439,8363)) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_descriptions`.`lang_code` = 'en'))",
      "cost_info": {
        "read_cost": "4.87",
        "eval_cost": "0.80",
        "prefix_cost": "5.67",
        "data_read_per_join": "36K"
      },
      "used_columns": [
        "product_id",
        "lang_code",
        "short_description",
        "full_description",
        "unit_name"
      ]
    }
  }
}

Result

product_id short_description full_description unit_name
3130 <p>The <strong>Anker Stylus Pen for iPad (White, model A7139)</strong> is a lightweight aluminum digital pen that connects via <strong>Bluetooth 5.3</strong> and offers up to <strong>8 hours of continuous use</strong> on a 130 mAh battery, fully recharging in about 25 minutes via <strong>USB‑C</strong>. It supports <strong>tilt sensitivity</strong>, reliable <strong>palm rejection</strong>, and conveniently attaches magnetically using an N52 magnet. Compatible with recent iPad models (including Pro, Air, and Mini), it comes with two replaceable nibs and mimics Apple Pencil functionality at a fraction of the cost.</p>
5821 <p>The Apple Pencil Pro delivers precise and responsive input for drawing, note taking, and creative work on your iPad. Its ergonomic design ensures comfortable handling for extended use. With advanced pressure sensitivity and tilt recognition, it provides a natural and intuitive experience for artists, students, and professionals alike.</p>
5824 <p>The Apple Pencil (USB-C) provides precise and responsive input for drawing, note taking, and creative work on your iPad. Its ergonomic design ensures comfortable handling for extended use. With USB-C charging support, it offers quick and convenient power up, making it ideal for artists, students, and professionals alike.</p>
5828 <p>The Apple Pencil (2nd Generation) delivers precise and fluid input for drawing, note taking, and creative tasks on your iPad. Its sleek, matte design offers a comfortable grip and easy handling. With wireless charging and intuitive touch controls, it enhances productivity and provides a seamless user experience.</p>
5832 <p>The Apple Pencil (1st Generation) delivers precise and responsive input for drawing, note taking, and creative work on your iPad. Its sleek design provides a comfortable grip for extended use. With lightning charging support, it offers quick and convenient power up, making it ideal for artists, students, and professionals alike.</p>
5850 <p>The Apple Pencil Tips - 4 Pack provides replacement tips for your Apple Pencil, ensuring precise and smooth input. Designed for durability, they maintain the original responsiveness and accuracy of your Apple Pencil. Easy to replace, these tips help keep your drawing and note taking experience consistent and reliable.</p>
8363 <p>The Hama “Scribble” Stylus is designed for Apple iPads, delivering high-precision performance for drawing, writing, note-taking, and editing. It features advanced tilt recognition for natural shading and enhanced control, making it ideal for creatives, students, and professionals. The stylus offers smooth, low-latency input that feels close to writing on paper, while the durable tip ensures long-lasting use. With its ergonomic and lightweight design, the Hama Scribble provides a comfortable and accurate digital writing experience across a wide range of iPad applications.</p>
8439 <p>The Xiaomi Focus Pen is a sleek and high-precision writing tool designed for smooth, accurate performance. With consistent ink flow, an ergonomic grip, and a minimalist build, it’s perfect for note-taking, sketching, and everyday use. It is fully compatible with the <strong>Xiaomi Pad 7</strong> and <strong>Xiaomi Pad 7 Pro</strong>, making it an ideal choice for users who want a reliable pen for both productivity and creativity.</p>