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 (
    82069, 
    82071, 
    82072, 
    82073, 
    82074, 
    82118, 
    149043, 
    149047, 
    149048, 
    149049, 
    82038, 
    148884, 
    148887, 
    148890, 
    148893, 
    148896, 
    148899, 
    148902, 
    148905, 
    148908, 
    148911, 
    148914, 
    148917, 
    148920, 
    148923, 
    148926, 
    148929, 
    148882, 
    148883, 
    149042, 
    149052, 
    149055, 
    149058, 
    149061, 
    149064, 
    149067, 
    149070, 
    149073, 
    149076, 
    149079, 
    149082, 
    149085, 
    149088, 
    149091, 
    149094, 
    149097, 
    149050, 
    149051, 
    82052, 
    82061, 
    81948, 
    149027, 
    149030, 
    149033, 
    149036, 
    149039, 
    149025, 
    149026, 
    263720, 
    264940, 
    264945, 
    264955, 
    264946, 
    264947, 
    264948, 
    264949, 
    152072, 
    152073, 
    152074, 
    152075, 
    82009, 
    149103, 
    149106, 
    149109, 
    149112, 
    149101, 
    149102, 
    82101, 
    82103, 
    263772, 
    264756, 
    264757, 
    264758, 
    264759, 
    264208, 
    264855, 
    264847, 
    264848, 
    264849, 
    264850, 
    263981, 
    264764, 
    264765, 
    264766, 
    264767, 
    264156, 
    264935, 
    264954, 
    264927, 
    264928, 
    264929, 
    264930, 
    264226, 
    264888, 
    264893, 
    264889, 
    264890, 
    264891, 
    264892, 
    264851, 
    264852, 
    264853, 
    264854, 
    264304, 
    264819, 
    264820, 
    264821, 
    264822, 
    264941, 
    264942, 
    264943, 
    264944, 
    81647, 
    149125, 
    149128, 
    149123, 
    149124
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00610

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "736.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "127.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": 127,
            "rows_produced_per_join": 127,
            "filtered": "100.00",
            "index_condition": "((`webmarco`.`cscart_images_links`.`object_type` = 'product') and (`webmarco`.`cscart_images_links`.`type` = 'M') and (`webmarco`.`cscart_images_links`.`object_id` in (82069,82071,82072,82073,82074,82118,149043,149047,149048,149049,82038,148884,148887,148890,148893,148896,148899,148902,148905,148908,148911,148914,148917,148920,148923,148926,148929,148882,148883,149042,149052,149055,149058,149061,149064,149067,149070,149073,149076,149079,149082,149085,149088,149091,149094,149097,149050,149051,82052,82061,81948,149027,149030,149033,149036,149039,149025,149026,263720,264940,264945,264955,264946,264947,264948,264949,152072,152073,152074,152075,82009,149103,149106,149109,149112,149101,149102,82101,82103,263772,264756,264757,264758,264759,264208,264855,264847,264848,264849,264850,263981,264764,264765,264766,264767,264156,264935,264954,264927,264928,264929,264930,264226,264888,264893,264889,264890,264891,264892,264851,264852,264853,264854,264304,264819,264820,264821,264822,264941,264942,264943,264944,81647,149125,149128,149123,149124)))",
            "cost_info": {
              "read_cost": "279.41",
              "eval_cost": "25.40",
              "prefix_cost": "304.81",
              "data_read_per_join": "11K"
            },
            "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": [
              "webmarco.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 127,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "127.00",
              "eval_cost": "25.40",
              "prefix_cost": "457.21",
              "data_read_per_join": "97K"
            },
            "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": "108",
            "ref": [
              "webmarco.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 127,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "127.00",
              "eval_cost": "25.40",
              "prefix_cost": "609.61",
              "data_read_per_join": "75K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

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 Abito-Lungo-Gonna-Ampia-Glitter-Webmarco__3__gyyx-sh.png 800 800 N 96850 81647 product 89116 M 0 89116
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 97291 81948 product 89375 M 0 89375
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 97407 82038 product 89407 M 0 89407
0 Abito-Sirena-Webmarco.png 800 800 N 97429 82052 product 89425 M 0 89425
0 Abito-Sirena-Webmarco.png 800 800 N 97443 82061 product 89425 M 0 89425
0 Abito-Lungo-Scollo-Americano-Webmarco.png 800 800 N 97454 82069 product 89437 M 0 89437
0 Abito-Lungo-Scollo-Americano-Webmarco.png 800 800 N 97459 82072 product 89437 M 0 89437
0 Abito-Lungo-Scollo-Americano-Webmarco.png 800 800 N 97460 82073 product 89437 M 0 89437
0 Abito-Lungo-Scollo-Americano-Webmarco.png 800 800 N 97461 82074 product 89437 M 0 89437
0 Abito-Raso-e-Macrame-Webmarco.png 800 800 N 97501 82101 product 89478 M 0 89478
0 Abito-Raso-e-Macrame-WebmarCo__1_.png 800 800 N 97506 82103 product 89482 M 0 89482
0 Abito-Lungo-in-Pizzo-e-Tulle-Webmarco.png 800 800 N 97542 82118 product 89502 M 0 89502
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182853 148882 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182854 148883 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182855 148884 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182858 148887 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182861 148890 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182864 148893 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182867 148896 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182870 148899 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182873 148902 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182876 148905 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182879 148908 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182882 148911 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182885 148914 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182888 148917 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182891 148920 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182894 148923 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182897 148926 product 89407 M 0 89407
0 Abito-Corto-da-Donna-Webmarco.png 800 800 N 182900 148929 product 89407 M 0 89407
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183117 149025 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183118 149026 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183119 149027 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183122 149030 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183125 149033 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183128 149036 product 89375 M 0 89375
0 Abito-Scollo-a-Vu-Corpetto-Ricamato-Webmarco.png 800 800 N 183131 149039 product 89375 M 0 89375
0 Abito-Lungo-in-Pizzo-e-Tulle-Webmarco.png 800 800 N 183141 149047 product 89502 M 0 89502
0 Abito-Lungo-in-Pizzo-e-Tulle-Webmarco.png 800 800 N 183142 149048 product 89502 M 0 89502
0 Abito-Lungo-in-Pizzo-e-Tulle-Webmarco.png 800 800 N 183143 149049 product 89502 M 0 89502
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183144 149050 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183145 149051 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183146 149052 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183149 149055 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183152 149058 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183155 149061 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183158 149064 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183161 149067 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183164 149070 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183167 149073 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183170 149076 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183173 149079 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183176 149082 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183179 149085 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183182 149088 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183185 149091 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183188 149094 product 162435 M 0 162435
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco.png 800 800 N 183191 149097 product 162435 M 0 162435
0 Abito-in-Raso-Corpetto-WebmarcO__1_.png 800 800 N 183208 149101 product 89405 M 0 89405
0 Abito-in-Raso-Corpetto-WebmarcO__1_.png 800 800 N 183209 149102 product 89405 M 0 89405
0 Abito-Lungo-Gonna-Ampia-Glitter-Webmarco__3__gyyx-sh.png 800 800 N 183384 149123 product 89116 M 0 89116
0 Abito-Lungo-Gonna-Ampia-Glitter-Webmarco__3__gyyx-sh.png 800 800 N 183385 149124 product 89116 M 0 89116
0 image__93__rufl-yg.png 800 800 N 376012 152072 product 171648 M 0 171648
0 image__93__rufl-yg.png 800 800 N 376015 152073 product 171648 M 0 171648
0 image__93__rufl-yg.png 800 800 N 376016 152074 product 171648 M 0 171648
0 image__93__rufl-yg.png 800 800 N 376017 152075 product 171648 M 0 171648
0 Kepucet_e_hirushes.jpg 1243 1234 N 1340727 263772 product 344549 M 0 344549
0 atlete1.jpg 1243 1213 N 1341197 263981 product 344788 M 0 344788
0 black3.jpg 1243 1487 N 1342890 264156 product 344729 M 0 344729
0 kastor_0hra-pz.jpg 1243 1037 N 1343441 264304 product 345163 M 0 345163
0 Kepucet_e_hirushes.jpg 1243 1234 N 1375652 264756 product 344549 M 0 344549
0 Kepucet_e_hirushes.jpg 1243 1234 N 1375653 264757 product 344549 M 0 344549
0 Kepucet_e_hirushes.jpg 1243 1234 N 1375654 264758 product 344549 M 0 344549
0 Kepucet_e_hirushes.jpg 1243 1234 N 1375655 264759 product 344549 M 0 344549
0 atlete1.jpg 1243 1213 N 1375660 264764 product 344788 M 0 344788
0 atlete1.jpg 1243 1213 N 1375661 264765 product 344788 M 0 344788
0 atlete1.jpg 1243 1213 N 1375662 264766 product 344788 M 0 344788
0 atlete1.jpg 1243 1213 N 1375663 264767 product 344788 M 0 344788
0 kastor_0hra-pz.jpg 1243 1037 N 1375718 264819 product 345163 M 0 345163
0 kastor_0hra-pz.jpg 1243 1037 N 1375719 264820 product 345163 M 0 345163
0 kastor_0hra-pz.jpg 1243 1037 N 1375720 264821 product 345163 M 0 345163
0 kastor_0hra-pz.jpg 1243 1037 N 1375721 264822 product 345163 M 0 345163
0 black3.jpg 1243 1487 N 1377225 264927 product 344729 M 0 344729
0 black3.jpg 1243 1487 N 1377226 264928 product 344729 M 0 344729
0 black3.jpg 1243 1487 N 1377227 264929 product 344729 M 0 344729
0 black3.jpg 1243 1487 N 1377228 264930 product 344729 M 0 344729
0 Abito-Lungo-Scollo-Americano-WeBmarco__2_.png 800 800 N 97464 82071 product 89443 M 1 89443
0 Long-Dress-in-Lace-and-Tulle-Webmarco.png 800 800 N 183195 149043 product 162439 M 1 162439
0 Bodice-Satin-Dress-Webmarco.png 800 800 N 183223 149103 product 162453 M 1 162453
0 Bodice-Satin-Dress-Webmarco_h8fw-cn.png 800 800 N 183226 149106 product 162456 M 1 162456
0 Bodice-Satin-Dress-Webmarco_66o7-07.png 800 800 N 183229 149109 product 162459 M 1 162459
0 Bodice-Satin-Dress-Webmarco_vc3i-rr.png 800 800 N 183232 149112 product 162462 M 1 162462
0 Abito-Lungo-Gonna-Ampia-Glitter-Blu-Webmarco_v06b-sc.png 800 800 N 183392 149125 product 162500 M 1 162500
0 Abito-Lungo-Gonna-Ampia-Glitter-Azure-Webmarco_u6b7-a2.png 800 800 N 183395 149128 product 162503 M 1 162503
0 emme-shopping-bodice-satin-dress-webmarco.png 800 800 N 379445 82009 product 172136 M 1 172136
0 color_green_a6ap-ma.jpg 1243 1525 N 1343152 264208 product 344526 M 1 344526
0 color_green_a6ap-ma.jpg 1243 1525 N 1376550 264847 product 344526 M 1 344526
0 color_green_a6ap-ma.jpg 1243 1525 N 1376551 264848 product 344526 M 1 344526
0 color_green_a6ap-ma.jpg 1243 1525 N 1376552 264849 product 344526 M 1 344526
0 color_green_a6ap-ma.jpg 1243 1525 N 1376553 264850 product 344526 M 1 344526
0 kepucepink_vi8w-7y_xj3o-x4.jpg 1243 1120 N 1377299 264935 product 348603 M 1 348603
0 kepucebeige_ycuz-df_cvgk-qe.jpg 1243 1241 N 1377845 264954 product 348620 M 1 348620
0 black1.jpg 1236 1226 N 1340499 263720 product 344529 M 2 344529
0 blue1_o9dw-b5.jpg 1243 1231 N 1343321 264226 product 345134 M 2 345134
0 122.jpg 1243 1511 N 1376559 264851 product 348571 M 2 348571
0 122_jj0x-3f.jpg 1243 1511 N 1376560 264852 product 348572 M 2 348572
0 122_q9zv-hu.jpg 1243 1511 N 1376561 264853 product 348573 M 2 348573
0 122_eih2-ww.jpg 1243 1511 N 1376592 264854 product 348574 M 2 348574
0 122_smtp-ic.jpg 1243 1511 N 1376613 264855 product 348575 M 2 348575
0 Abito-Lungo-Monospalla-con-Gonna-Ampia-webmarco_qaid-9x.png 800 800 N 183205 149042 product 162449 M 3 162449
0 roze_22x3-k5_nlnz-vr.jpg 1243 1000 N 1376727 264888 product 348577 M 3 348577
0 roze_22x3-k5_x12x-9q.jpg 1243 1000 N 1376728 264889 product 348578 M 3 348578
0 roze_22x3-k5_u5sk-tc.jpg 1243 1000 N 1376729 264890 product 348579 M 3 348579
0 roze_22x3-k5_vaos-g4.jpg 1243 1000 N 1376730 264891 product 348580 M 3 348580
0 roze_22x3-k5_l0l4-nk.jpg 1243 1000 N 1376731 264892 product 348581 M 3 348581
0 green_iz7e-p1_s4w9-x1.jpg 1243 1533 N 1376732 264893 product 348582 M 3 348582
0 blue_u7cf-ic_t3yk-0b.jpg 1243 768 N 1377615 264940 product 348605 M 3 348605
0 blue_u7cf-ic_s79n-yc.jpg 1243 768 N 1377616 264941 product 348606 M 3 348606
0 blue_u7cf-ic_f5os-98.jpg 1243 768 N 1377647 264942 product 348607 M 3 348607
0 blue_u7cf-ic_jckg-g4.jpg 1243 768 N 1377648 264943 product 348608 M 3 348608
0 blue_u7cf-ic_psrf-sq.jpg 1243 768 N 1377709 264944 product 348609 M 3 348609
0 pink_hkyi-22_ptsh-fu.jpg 1243 913 N 1377710 264945 product 348610 M 3 348610
0 pink_hkyi-22_munc-mg.jpg 1243 913 N 1377711 264946 product 348611 M 3 348611
0 pink_hkyi-22_4yji-qd.jpg 1243 913 N 1377712 264947 product 348612 M 3 348612
0 pink_hkyi-22_00t1-2y.jpg 1243 913 N 1377713 264948 product 348613 M 3 348613
0 pink_hkyi-22_wnyd-lt.jpg 1243 913 N 1377714 264949 product 348614 M 3 348614
0 beige_08c0-11_kb2k-kq.jpg 1209 910 N 1378063 264955 product 348623 M 3 348623