SELECT 
  cscart_images.*, 
  cscart_images_links.*, 
  cscart_common_descriptions.description AS alt, 
  cscart_images.image_id AS images_image_id 
FROM 
  cscart_images_links 
  LEFT JOIN cscart_images ON cscart_images_links.detailed_id = cscart_images.image_id 
  LEFT JOIN cscart_common_descriptions ON cscart_common_descriptions.object_id = cscart_images.image_id 
  AND cscart_common_descriptions.object_holder = 'images' 
  AND cscart_common_descriptions.lang_code = 'ar' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    1615, 1616, 2593, 2594, 2595, 3112, 3113, 
    8474, 8475, 2441, 2877, 2878, 2879, 
    2938, 2939, 2940, 2941, 7283, 7616, 
    3034, 3033, 3104, 3105, 3106, 3664, 
    3665, 3609, 3370, 3371, 7293, 7625, 
    2617, 2618, 2788, 2789, 2790, 2791, 
    7608, 7279, 7285, 7620, 7619, 7618, 
    7617, 2649, 2650
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00334

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "110.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "46.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_images_links",
            "access_type": "range",
            "possible_keys": [
              "object_id"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type",
              "type"
            ],
            "key_length": "81",
            "rows_examined_per_scan": 46,
            "rows_produced_per_join": 46,
            "filtered": "100.00",
            "index_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_type` = 'product') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`type` = 'M') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_id` in (1615,1616,2593,2594,2595,3112,3113,8474,8475,2441,2877,2878,2879,2938,2939,2940,2941,7283,7616,3034,3033,3104,3105,3106,3664,3665,3609,3370,3371,7293,7625,2617,2618,2788,2789,2790,2791,7608,7279,7285,7620,7619,7618,7617,2649,2650)))",
            "cost_info": {
              "read_cost": "27.61",
              "eval_cost": "4.60",
              "prefix_cost": "32.21",
              "data_read_per_join": "4K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "4",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 46,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "11.50",
              "eval_cost": "4.60",
              "prefix_cost": "48.31",
              "data_read_per_join": "35K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res",
              "transparent",
              "cp_in_opt_list"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "108",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 46,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "11.50",
              "eval_cost": "4.60",
              "prefix_cost": "64.41",
              "data_read_per_join": "27K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res transparent cp_in_opt_list pair_id object_id object_type detailed_id type position alt images_image_id
0 Xiaomi_TV_S_Mini_LED_75_2025.jpg 750 750 N N Y 15253 2441 product 11589 M 0 11589
0 Delivard_Product_Images__2__30gx-d3.jpg 600 600 N N Y 15693 2593 product 11850 M 0 11850
0 q6HyasVb214SC4nNDQA2ByEywdT355xoHvSrWKEQ_dubs-pn.jpg 800 800 N N Y 15697 2594 product 11854 M 0 11854
0 xjr3fkx1FVgLZuqoJR1n3Uksrcwj3VJKs3AIvzDM_uwe1-cv.jpg 800 800 N N Y 15700 2595 product 11857 M 0 11857
0 Delivard_Product_Images__5__b00i-x4.jpg 600 600 N N Y 15745 2617 product 11878 M 0 11878
0 KcaOmHtbCrMgAgV9k2JAwmfIFr3bi8n1DJyrPsz1.jpg 800 800 N N Y 15747 2618 product 11879 M 0 11879
0 Delivard_Product_Images_-_2025-07-09T114934.856.jpg 600 600 N N Y 15840 2649 product 11920 M 0 11920
0 Delivard_Product_Images_-_2025-07-09T114934.856.jpg 600 600 N N Y 15847 2650 product 11920 M 0 11920
0 Delivard_Product_Images__30_.jpg 600 600 N N Y 16615 2788 product 12486 M 0 12486
0 DRgIpyV4N2kyzwbME3ExVYPdD3hmmRem0A5CY9i2.jpg 800 800 N N Y 16620 2790 product 12487 M 0 12487
0 GOo0ZBdQx7YdqP7YE6My0jmyg4a5WBuUcOSQFdL6.jpg 800 800 N N Y 16622 2789 product 12488 M 0 12488
0 vNBBny6BMXFV7o5VZD1dVOzeXpOhwj2KJ5Hge65M__1_.jpg 800 800 N N Y 16627 2791 product 12489 M 0 12489
0 Delivard_Product_Images__58_.jpg 600 600 N N Y 16790 2877 product 12543 M 0 12543
0 4A6GNHx3vVZum05DnSwPzq3GLF8WumPcb5rLFqom.jpg 800 800 N N Y 16794 2879 product 12544 M 0 12544
0 9wdL1FCGpQ1X8IAUxzyUeLCWJzXuIkaAn43E8gFp.jpg 800 800 N N Y 16795 2878 product 12545 M 0 12545
0 Delivard_htk0-d3.jpg 600 600 N N Y 17103 3033 product 12787 M 0 12787
0 Delivard1_5z7h-hh.jpg 600 600 N N Y 17109 3034 product 12790 M 0 12790
0 Untitled_design_-_2025-07-20T101457.347.jpg 600 600 N N Y 17520 3112 product 13125 M 0 13125
0 Untitled_design_-_2025-07-20T101519.126_3pfl-75.jpg 600 600 N N Y 17523 3113 product 13128 M 0 13128
0 Untitled_design_-_2025-07-20T105834.325.jpg 600 600 N N Y 17587 3104 product 13182 M 0 13182
0 Untitled_design_-_2025-07-20T105919.045_e7nk-gq.jpg 600 600 N N Y 17590 3105 product 13185 M 0 13185
0 Untitled_design_-_2025-07-20T105856.077_e8h6-i6.jpg 600 600 N N Y 17593 3106 product 13188 M 0 13188
0 Untitled_design_-_2025-07-20T122256.699.jpg 600 600 N N Y 17697 2938 product 13284 M 0 13284
0 Untitled_design_-_2025-07-20T122641.386_7t21-zt.jpg 600 600 N N Y 17707 2939 product 13294 M 0 13294
0 Untitled_design_-_2025-07-20T123048.519_850d-5x.jpg 600 600 N N Y 17717 2940 product 13304 M 0 13304
0 Untitled_design_-_2025-07-20T123004.611_3ekf-sw.jpg 600 600 N N Y 17725 2941 product 13312 M 0 13312
0 Untitled_design__26__k6cw-gg.jpg 600 600 N N Y 18226 3370 product 13770 M 0 13770
0 4b12da78a710243a_BPB024fqBK-boostcharge-powerbank-20k-with-integrated-cable-webgg-01.jpg 700 700 N N Y 18228 3371 product 13771 M 0 13771
0 Untitled_design__69__ctlh-qq_5j0b-qh.jpg 600 600 N N Y 19193 3609 product 14628 M 0 14628
0 Untitled_design_-_2025-08-04T135625.226.jpg 600 600 N N Y 19268 1615 product 14678 M 0 14678
0 Untitled_design_-_2025-08-04T135606.036_q9od-jn.jpg 600 600 N N Y 19270 1616 product 14680 M 0 14680
0 Untitled_design_-_2025-08-04T180534.842.jpg 600 600 N N Y 19417 3664 product 14819 M 0 14819
0 Untitled_design_-_2025-08-04T180555.422.jpg 600 600 N N Y 19419 3665 product 14820 M 0 14820
0 43A6500N__4_.jpg 854 529 N N Y 33124 7620 product 24818 M 0 24818
0 50A6500N__5_.jpg 854 529 N N Y 33150 7617 product 24844 M 0 24844
0 65A6500N__2_.jpg 854 529 N N Y 33217 7619 product 24911 M 0 24911
0 75A6500N__5_.jpg 854 529 N N Y 33285 7285 product 24979 M 0 24979
0 Xiaomi_TV_S_Mini_LED_75_2025.jpg 750 750 N N Y 35899 8474 product 11589 M 0 11589
0 Xiaomi_TV_S_Mini_LED_75_2025.jpg 750 750 N N Y 35900 8475 product 11589 M 0 11589
0 4_317x-o6.jpg 600 600 N N Y 35794 7279 product 27411 M 1 27411
0 5_b50a-03.jpg 600 600 N N Y 35795 7608 product 27412 M 1 27412
0 32A4Q.jpg 784 552 N N Y 33097 7625 product 24791 M 2 24791
0 43A4Q.jpg 789 552 N N Y 33099 7293 product 24793 M 2 24793
0 55A6500N__1_.jpg 854 529 N N Y 33181 7618 product 24875 M 2 24875
0 55Q7Q.jpg 1139 746 N N Y 33196 7616 product 24890 M 2 24890
0 65Q7Q.jpg 1157 756 N N Y 33231 7283 product 24925 M 2 24925