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 = 'en' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    2363, 2364, 2365, 2842, 2843, 2844, 2845, 
    2846, 2847, 2854, 2855, 2856, 2857, 
    2858, 2859, 2373, 2374, 3142, 3143, 
    3144, 2369, 2370, 2371, 2938, 2939, 
    2940, 2941, 2708, 2709, 2710, 2802, 
    2836, 4928, 4916
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00280

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "81.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "34.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": 34,
            "rows_produced_per_join": 34,
            "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 (2363,2364,2365,2842,2843,2844,2845,2846,2847,2854,2855,2856,2857,2858,2859,2373,2374,3142,3143,3144,2369,2370,2371,2938,2939,2940,2941,2708,2709,2710,2802,2836,4928,4916)))",
            "cost_info": {
              "read_cost": "20.41",
              "eval_cost": "3.40",
              "prefix_cost": "23.81",
              "data_read_per_join": "3K"
            },
            "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": 34,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.50",
              "eval_cost": "3.40",
              "prefix_cost": "35.71",
              "data_read_per_join": "26K"
            },
            "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": 34,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.50",
              "eval_cost": "3.40",
              "prefix_cost": "47.61",
              "data_read_per_join": "20K"
            },
            "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 6_zfkp-gi.jpg 600 600 N N Y 14990 2363 product 11459 M 0 11459
0 61c41bf2101e5_Website-Product-Size-_1_-slider.jpg 800 800 N N Y 14997 2365 product 11461 M 0 11461
0 61c41ae3cc234_Website-Product-Size-_1_.jpg-ssssssssssssssssss-slider.jpg 800 800 N N Y 14998 2364 product 11460 M 0 11460
0 10_2gtk-ty.jpg 600 600 N N Y 15007 2369 product 11468 M 0 11468
0 770_45yn-4u.jpg 800 800 N N Y 15012 2370 product 11469 M 0 11469
0 xiaomi-outdoor-speaker-sound-outdoor-s29d-30w-red-qbh4263gl.webp 800 800 N N Y 15015 2371 product 11470 M 0 11470
0 mi-portable-bluetooth-speaker-16w-1_361d19e2-c9b5-4c56-b0a3-c92623c716ab.jpg 1000 1000 N N Y 15026 2373 product 11477 M 0 11477
0 12_wfwa-no.jpg 600 600 N N Y 15030 2374 product 11476 M 0 11476
0 Delivard_Product_Images__10_.jpg 600 600 N N Y 16190 2708 product 12175 M 0 12175
0 79Fin2iUha8p2PgV25LNTjLbbGtObCIrJK0qYPk6.jpg 800 800 N N Y 16194 2710 product 12176 M 0 12176
0 RahprXlMdlHooKClkXapCKx7kgY26Ccig7M5hfMA.jpg 800 800 N N Y 16195 2709 product 12177 M 0 12177
0 rbygHLFk0eTlYrAJDQYAkzpbXIHuGCc5S3e4r5XP__1_.jpg 800 800 N N Y 16665 2836 product 12511 M 0 12511
0 Delivard_Product_Images__48__b6r2-pd.jpg 600 600 N N Y 16668 2802 product 12513 M 0 12513
0 Delivard_Product_Images__50_.jpg 600 600 N N Y 16678 2842 product 12517 M 0 12517
0 EFOzkfAATkWZ8w6f5eYZ7TDxDbh0teUhDYmyLjP8.jpg 800 800 N N Y 16687 2846 product 12518 M 0 12518
0 lsc01jNGF33nRhB0nYhzViGG1bFBWLLN0hLAOvKI.jpg 800 800 N N Y 16689 2843 product 12519 M 0 12519
0 z3FPGzVh4VKXlRY5mvsL1YVUGTuHVSPaAJcshuWb.jpg 800 800 N N Y 16695 2844 product 12520 M 0 12520
0 zlYDjWGACjRyF8yFVOl9C1M0EEkZYDWwZbGYxt3m.jpg 800 800 N N Y 16703 2847 product 12521 M 0 12521
0 CTKcPLTFRPJ4I84XvSIlhbcmiw0sHyleGUb0cIot.jpg 800 800 N N Y 16706 2845 product 12522 M 0 12522
0 Delivard_Product_Images__51_.jpg 600 600 N N Y 16714 2854 product 12523 M 0 12523
0 hLH4UCK7BdBFOmgrcYCG3uDApQy3KC4dKTQ56Pnk.jpg 800 800 N N Y 16721 2856 product 12524 M 0 12524
0 ikFsnHHqCC1fNGLfRwNHjF6TUctWv9Aec8J8qwRA.jpg 800 800 N N Y 16727 2857 product 12525 M 0 12525
0 WtGk6jedSKv0k6GMVeL2xuSmX0N3xbhYfOhH1oNs.jpg 800 800 N N Y 16734 2859 product 12526 M 0 12526
0 WYQcSZcts1Pbft5nBz2mKhjjnkeVdQsbWVccEOJh.jpg 800 800 N N Y 16738 2858 product 12527 M 0 12527
0 YykbQ0O7KcHYP533N9T0BN9GhClIxb8FJeKqVs1H.jpg 800 800 N N Y 16740 2855 product 12528 M 0 12528
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_-_2025-08-03T172420.468.jpg 600 600 N N Y 19156 3142 product 14595 M 0 14595
0 Untitled_design_-_2025-08-03T172448.228_rk55-4z.jpg 600 600 N N Y 19159 3143 product 14598 M 0 14598
0 Untitled_design_-_2025-08-03T172351.156_8sxp-84.jpg 600 600 N N Y 19162 3144 product 14601 M 0 14601
0 Delivard_Template_l41y-s8.jpg 900 900 N N Y 24284 4916 product 18271 M 0 18271
0 Delivard_Template_eppp-3b.jpg 900 900 N N Y 24280 4928 product 18267 M 2 18267