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 = 'A' 
  AND cscart_images_links.object_id IN (
    58631, 23660, 37518, 23671, 23659, 37916, 
    68137, 39049
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00179

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "103.48"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "36.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_images_links",
            "access_type": "range",
            "possible_keys": [
              "object_id",
              "idx_object_type_type_position"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type",
              "type"
            ],
            "key_length": "81",
            "rows_examined_per_scan": 36,
            "rows_produced_per_join": 36,
            "filtered": "100.00",
            "index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'A') and (`cscart_db`.`cscart_images_links`.`object_id` in (58631,23660,37518,23671,23659,37916,68137,39049)))",
            "cost_info": {
              "read_cost": "24.13",
              "eval_cost": "3.60",
              "prefix_cost": "27.73",
              "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": [
              "cscart_db.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 36,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "17.88",
              "eval_cost": "3.60",
              "prefix_cost": "49.21",
              "data_read_per_join": "27K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ]
          }
        },
        {
          "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": "107",
            "ref": [
              "cscart_db.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 36,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "14.68",
              "eval_cost": "3.60",
              "prefix_cost": "67.48",
              "data_read_per_join": "21K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`cscart_db`.`cscart_common_descriptions`.`object_id` = `cscart_db`.`cscart_images`.`image_id`), true)"
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res pair_id object_id object_type detailed_id type position alt images_image_id
0 Ultra_light_invisible_Sun_1_67b72102-93e5-431f-8ca7-450eec05fe5a.jpg 800 1067 N 166372 37916 product 167721 A 1 167721
0 71jjhRlklML._SX450_.jpg 450 253 N 170731 39049 product 172077 A 1 172077
0 294_eef93cb2-8d5a-4aeb-b0af-fd6d0bd83bc4.png 800 800 N 171459 58631 product 172805 A 1 172805
0 Iunik_signed_page-0001_rzot-vb.jpg 1241 1754 N 173389 23659 product 174735 A 1 174735
0 10_r3zw-3c.jpg 1080 1080 N 193893 68137 product 195231 A 1 195231
0 Ultra_light_invisible_Sun_3.jpg 800 1067 N 166373 37916 product 167722 A 2 167722
0 616l-ORCGxL._SX450_.jpg 450 253 N 170732 39049 product 172078 A 2 172078
0 IUnik2.jpg 1080 1080 N 185152 23671 product 186498 A 2 186498
0 9_su9b-gp.jpg 1080 1080 N 193892 68137 product 195230 A 2 195230
0 Ultra_light_invisible_Sun_4.jpg 800 1067 N 166374 37916 product 167723 A 3 167723
0 71kGL7xsfgL._SY450_.jpg 450 450 N 170733 39049 product 172079 A 3 172079
0 IUnik1.jpg 1170 1500 N 185151 23671 product 186497 A 3 186497
0 2022Beta_Glucan_Power_Moisture_Serum_50ml_Visual_07_7w54-cp.jpg 8445 6310 N 85440 23671 product 86792 A 4 86792
0 Ultra_light_invisible_Sun_7.jpg 800 1067 N 166375 37916 product 167724 A 4 167724
0 81nojP1BbHL._SY450_.jpg 450 450 N 170734 39049 product 172080 A 4 172080
0 Beta_Glucan_Power_Moisture_Serum_50ml_Visual_02__1___Medium_.jpg 1015 768 N 85441 23671 product 86793 A 5 86793
0 Ultra_light_invisible_Sun_9.jpg 800 1067 N 166376 37916 product 167725 A 5 167725
0 Iunik_signed_page-0001_p1d3-d3.jpg 1241 1754 N 173394 39049 product 174740 A 5 174740
0 12_[iUNIK]_Beta_glucan_Cream_visual_01__Medium_.jpg 1024 768 N 85421 23660 product 86773 A 6 86773
0 Beta_Glucan_Power_Moisture_Serum_50ml_Visual_04__Medium_.jpg 1102 768 N 85442 23671 product 86794 A 6 86794
0 Ultra_light_invisible_Sun_10.jpg 800 1067 N 166377 37916 product 167726 A 6 167726
0 Beta_Glucan_Daily_Moisture_Cream_Visual_01__1___Medium_.jpg 1023 768 N 85422 23660 product 86774 A 7 86774
0 Beta_Glucan_Power_Moisture_Serum_50ml_Visual_06__Medium_.jpg 989 768 N 85443 23671 product 86795 A 7 86795
0 The6_Peptid_Serum_1.jpg 800 1067 N 163689 37518 product 165041 A 7 165041
0 Ultra_light_invisible_Sun_12.jpg 800 1067 N 166378 37916 product 167727 A 7 167727
0 Beta_Glucan_Daily_Moisture_Cream_Visual_04__Medium_.jpg 1169 768 N 85423 23660 product 86775 A 8 86775
0 Beta_Glucan_Power_Moisture_Serum_50ml_Visual_07__Medium_.jpg 1152 768 N 85444 23671 product 86796 A 8 86796
0 The6_Peptid_Serum_2.jpg 800 1067 N 163690 37518 product 165042 A 8 165042
0 Ultra_light_invisible_Sun_16.jpg 800 1067 N 166379 37916 product 167728 A 8 167728
0 Beta_Glucan_Daily_Moisture_Cream_Visual_10__Medium_.PNG 1024 768 N 85424 23660 product 86776 A 9 86776
0 The6_Peptid_Serum_3.jpg 800 1067 N 163691 37518 product 165043 A 9 165043
0 Iunik_signed_page-0001_440a-a1.jpg 1241 1754 N 173392 23671 product 174738 A 9 174738
0 The6_Peptid_Serum_4.jpg 800 1067 N 163692 37518 product 165044 A 10 165044
0 The6_Peptid_Serum_5.jpg 800 1067 N 163693 37518 product 165045 A 11 165045
0 The6_Peptid_Serum_9.jpg 800 1067 N 163694 37518 product 165046 A 12 165046
0 COSRX_4myw-l5_x65z-j9.jpg 595 842 N 173304 37518 product 174650 A 13 174650