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 (
    12684, 12694, 12704, 12689, 12685, 12686, 
    12687, 12688, 12714, 12724, 12734, 
    12719, 12715, 12716, 12717, 12718, 
    13260, 13261, 13262, 13263, 13264, 
    13265, 13266, 13267, 13268, 13269, 
    13270, 13271, 13272, 13273, 12349, 
    12354, 12359, 12350, 12351, 12352, 
    12353, 12364, 12369, 12374, 12365, 
    12366, 12367, 12368, 12259, 12304, 
    12260, 12261, 12274, 12289, 12262, 
    12265, 12268, 12271, 12504, 12514, 
    12509, 12505, 12506, 12507, 12508, 
    12524, 12532, 12528, 12525, 12526, 
    12527, 12379, 12394, 12409, 12384, 
    12389, 12380, 12381, 12382, 12383, 
    6843, 3295, 3166, 3167, 3171, 3174, 
    3180, 3187, 3193, 3271, 3282, 6757, 
    6842, 7008, 3294, 3195, 6840, 3178, 
    3188, 3274, 3276, 3285, 3286, 3290, 
    6760, 7278, 7353, 7357, 3196
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00398

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "267.06"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "112.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": 112,
            "rows_produced_per_join": 112,
            "filtered": "100.00",
            "index_condition": "((`test2_gaseus`.`cscart_images_links`.`object_type` = 'product') and (`test2_gaseus`.`cscart_images_links`.`type` = 'M') and (`test2_gaseus`.`cscart_images_links`.`object_id` in (12684,12694,12704,12689,12685,12686,12687,12688,12714,12724,12734,12719,12715,12716,12717,12718,13260,13261,13262,13263,13264,13265,13266,13267,13268,13269,13270,13271,13272,13273,12349,12354,12359,12350,12351,12352,12353,12364,12369,12374,12365,12366,12367,12368,12259,12304,12260,12261,12274,12289,12262,12265,12268,12271,12504,12514,12509,12505,12506,12507,12508,12524,12532,12528,12525,12526,12527,12379,12394,12409,12384,12389,12380,12381,12382,12383,6843,3295,3166,3167,3171,3174,3180,3187,3193,3271,3282,6757,6842,7008,3294,3195,6840,3178,3188,3274,3276,3285,3286,3290,6760,7278,7353,7357,3196)))",
            "cost_info": {
              "read_cost": "65.46",
              "eval_cost": "11.20",
              "prefix_cost": "76.66",
              "data_read_per_join": "10K"
            },
            "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": [
              "test2_gaseus.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 112,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "28.00",
              "eval_cost": "11.20",
              "prefix_cost": "115.86",
              "data_read_per_join": "85K"
            },
            "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": [
              "test2_gaseus.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 112,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "28.00",
              "eval_cost": "11.20",
              "prefix_cost": "155.06",
              "data_read_per_join": "66K"
            },
            "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 Seite-74-F10-2-300-Effect-LabLinekEtsMRyV4cFWo_600x600_2x.jpg 1200 800 N 6229 6757 product 9712 M 0 9712
0 Druckminderer-Vulkan-F15-300-Effect-LabLine-Wasserstoff-2_600x600_2x.jpg 500 443 N 6232 6760 product 9715 M 0 9715
0 Druckminderer-Vulkan-F15-200-Effect-LabLine-Stickstoff-2_600x600_2x.jpg 500 443 N 6312 6840 product 9795 M 0 9795
0 Seite-72-F10-300-Effect-LabLine2aFmf03h0ksC8_600x600_2x.jpg 1200 800 N 6314 6842 product 9797 M 0 9797
0 Seite-72-F10-300-Effect-LabLine31Zc2BvQu8FYV_600x600_2x.jpg 1200 800 N 6315 6843 product 9798 M 0 9798
0 1447432387-1306-1_600x600_2x_t1v7-bp.jpg 500 495 N 6480 7008 product 9963 M 0 9963
0 Druckminderer-Vulkan-F-10-200-Effect-Sauerstoff-zweistufig-2_600x600_2x_osa2-fp.jpg 500 399 N 6750 7278 product 10233 M 0 10233
0 1337327177-22599_600x600_2x_oyl6-qw.jpg 580 462 N 6825 7353 product 10308 M 0 10308
0 1337327177-22599_600x600_2x_3r9m-np.jpg 580 462 N 6829 7357 product 10312 M 0 10312
0 1548237937-17812-1-2_600x600_2x.jpg 500 448 N 11731 12259 product 15214 M 0 15214
0 1548237937-17812-1-2_600x600_2x_r8td-wq.jpg 500 448 N 11732 12260 product 15215 M 0 15215
0 1548237937-17812-1-2_600x600_2x_ayjq-8g.jpg 500 448 N 11733 12261 product 15216 M 0 15216
0 1548237937-17812-1-2_600x600_2x_lcpj-he.jpg 500 448 N 11734 12262 product 15217 M 0 15217
0 1548237937-17812-1-2_600x600_2x_a8mo-hx.jpg 500 448 N 11737 12265 product 15220 M 0 15220
0 1548237937-17812-1-2_600x600_2x_yj0t-g9.jpg 500 448 N 11740 12268 product 15223 M 0 15223
0 1548237937-17812-1-2_600x600_2x_x8yr-dl.jpg 500 448 N 11743 12271 product 15226 M 0 15226
0 1548237937-17812-1-2_600x600_2x_hpkg-b9.jpg 500 448 N 11746 12274 product 15229 M 0 15229
0 1548237937-17812-1-2_600x600_2x_h4tk-cl.jpg 500 448 N 11761 12289 product 15244 M 0 15244
0 1371625705-27843-1_600x600.jpg 500 416 N 11776 12304 product 15259 M 0 15259
0 1378276732-30361_600x600.jpg 500 342 N 11821 12349 product 15304 M 0 15304
0 1378276732-30361_600x600_xrtk-pz.jpg 500 342 N 11822 12350 product 15305 M 0 15305
0 1378276732-30361_600x600_r8lp-ky.jpg 500 342 N 11823 12351 product 15306 M 0 15306
0 1378276732-30361_600x600_rgxx-g3.jpg 500 342 N 11824 12352 product 15307 M 0 15307
0 1378276732-30361_600x600_3ssw-lq.jpg 500 342 N 11825 12353 product 15308 M 0 15308
0 1378276732-30361_600x600_nygw-jj.jpg 500 342 N 11826 12354 product 15309 M 0 15309
0 1378276732-30361_600x600_4ckd-cy.jpg 500 342 N 11831 12359 product 15314 M 0 15314
0 1380707184-31237-1_600x600.jpg 500 366 N 11836 12364 product 15319 M 0 15319
0 1380707184-31237-1_600x600_2ogz-iq.jpg 500 366 N 11837 12365 product 15320 M 0 15320
0 1380707184-31237-1_600x600_vd4v-fd.jpg 500 366 N 11838 12366 product 15321 M 0 15321
0 1380707184-31237-1_600x600_004d-8v.jpg 500 366 N 11839 12367 product 15322 M 0 15322
0 1380707184-31237-1_600x600_6mzt-bw.jpg 500 366 N 11840 12368 product 15323 M 0 15323
0 1380707184-31237-1_600x600_1w9p-hd.jpg 500 366 N 11841 12369 product 15324 M 0 15324
0 1380707184-31237-1_600x600_ttfx-ub.jpg 500 366 N 11846 12374 product 15329 M 0 15329
0 Screenshot_2026-03-24_at_14.27.02.png 358 310 N 11851 12379 product 15334 M 0 15334
0 Screenshot_2026-03-24_at_14.27.02_3ujl-v5.png 358 310 N 11852 12380 product 15335 M 0 15335
0 Screenshot_2026-03-24_at_14.27.02_fsxj-wu.png 358 310 N 11853 12381 product 15336 M 0 15336
0 Screenshot_2026-03-24_at_14.27.02_wmdu-2y.png 358 310 N 11854 12382 product 15337 M 0 15337
0 Screenshot_2026-03-24_at_14.27.02_mx77-zu.png 358 310 N 11855 12383 product 15338 M 0 15338
0 Screenshot_2026-03-24_at_14.27.02_uww6-9s.png 358 310 N 11856 12384 product 15339 M 0 15339
0 Screenshot_2026-03-24_at_14.27.02_2jru-jf.png 358 310 N 11861 12389 product 15344 M 0 15344
0 Screenshot_2026-03-24_at_14.27.02_9rp8-t9.png 358 310 N 11866 12394 product 15349 M 0 15349
0 Screenshot_2026-03-24_at_14.27.02_t3op-zn.png 358 310 N 11881 12409 product 15364 M 0 15364
0 Thanos_F1_600x600.jpg 600 600 N 11976 12504 product 15459 M 0 15459
0 Thanos_F1_600x600_7j50-v3.jpg 600 600 N 11977 12505 product 15460 M 0 15460
0 Thanos_F1_600x600_q7kk-9u.jpg 600 600 N 11978 12506 product 15461 M 0 15461
0 Thanos_F1_600x600_f9sw-gb.jpg 600 600 N 11979 12507 product 15462 M 0 15462
0 Thanos_F1_600x600_5nos-3s.jpg 600 600 N 11980 12508 product 15463 M 0 15463
0 Thanos_F1_600x600_mtp6-s0.jpg 600 600 N 11981 12509 product 15464 M 0 15464
0 Thanos_F1_600x600_ymqm-6z.jpg 600 600 N 11986 12514 product 15469 M 0 15469
0 Thanos_L2_600x600.jpg 564 600 N 11996 12524 product 15479 M 0 15479
0 Thanos_L2_600x600_neqv-1j.jpg 564 600 N 11997 12525 product 15480 M 0 15480
0 Thanos_L2_600x600_igcv-0e.jpg 564 600 N 11998 12526 product 15481 M 0 15481
0 Thanos_L2_600x600_909f-69.jpg 564 600 N 11999 12527 product 15482 M 0 15482
0 Thanos_L2_600x600_a3z8-47.jpg 564 600 N 12000 12528 product 15483 M 0 15483
0 Thanos_L2_600x600_3k93-ng.jpg 564 600 N 12004 12532 product 15487 M 0 15487
0 1380094497-13333_600x600_2x.jpg 500 238 N 12156 12684 product 15639 M 0 15639
0 1380094497-13333_600x600_2x_ke9e-pi.jpg 500 238 N 12157 12685 product 15640 M 0 15640
0 1380094497-13333_600x600_2x_bww4-na.jpg 500 238 N 12158 12686 product 15641 M 0 15641
0 1380094497-13333_600x600_2x_y3fu-q6.jpg 500 238 N 12159 12687 product 15642 M 0 15642
0 1380094497-13333_600x600_2x_0xkl-xn.jpg 500 238 N 12160 12688 product 15643 M 0 15643
0 1380094497-13333_600x600_2x_h9jx-hl.jpg 500 238 N 12161 12689 product 15644 M 0 15644
0 1380099760-24167_600x600_2x.jpg 500 238 N 12166 12694 product 15649 M 0 15649
0 1380099760-24167_600x600_2x_kta3-50.jpg 500 238 N 12176 12704 product 15659 M 0 15659
0 1380098192-13835_600x600_2x.jpg 500 334 N 12186 12714 product 15669 M 0 15669
0 1380098192-13835_600x600_2x_v96j-kb.jpg 500 334 N 12187 12715 product 15670 M 0 15670
0 1380098192-13835_600x600_2x_i5gw-xd.jpg 500 334 N 12188 12716 product 15671 M 0 15671
0 1380098192-13835_600x600_2x_tbys-k8.jpg 500 334 N 12189 12717 product 15672 M 0 15672
0 1380098192-13835_600x600_2x_amsd-9o.jpg 500 334 N 12190 12718 product 15673 M 0 15673
0 1380098192-13835_600x600_2x_ykyl-ic.jpg 500 334 N 12191 12719 product 15674 M 0 15674
0 1380522728-22669_600x600_2x.jpg 500 334 N 12196 12724 product 15679 M 0 15679
0 1380522728-22669_600x600_2x_qkj1-l6.jpg 500 334 N 12206 12734 product 15689 M 0 15689
0 276711-F10-300F-Effect-Flowmeter-LabLine-Seite-73jnqvyUrfzX4ND_600x600_2x_60kb-0j.jpg 1191 1200 N 15867 3166 product 19348 M 0 19348
0 276711-F10-300F-Effect-Flowmeter-LabLine-Seite-73jnqvyUrfzX4ND_600x600_2x_g1g1-tp.jpg 1191 1200 N 15868 3167 product 19349 M 0 19349
0 Seite-74-F10-2-300-Effect-LabLineJBuIVNZ4mAIwT_600x600_2x.jpg 1200 800 N 15872 3171 product 19353 M 0 19353
0 Seite-72-F10-300-Effect-LabLinemIF5wRhMrIvuu_600x600_2x.jpg 1200 800 N 15875 3174 product 19356 M 0 19356
0 Druckminderer-Vulkan-F15-300-Effect-LabLine-CO2-Argon-2_600x600_2x.jpg 500 443 N 15879 3178 product 19360 M 0 19360
0 Seite-74-F10-2-300-Effect-LabLinevbOlhlmNHaxo4_600x600_2x.jpg 1200 800 N 15881 3180 product 19362 M 0 19362
0 Druckregler-Vulkan-F10-F-300-Effect-LabLine-2_6-26-Wasserstoff_600x600_2x.jpg 707 800 N 15888 3187 product 19369 M 0 19369
0 Druckminderer-Vulkan-F15-300-Effect-LabLine-Formiergas-2_600x600_2x.jpg 500 443 N 15889 3188 product 19370 M 0 19370
0 Seite-74-F10-2-300-Effect-LabLineerzJouJLdbYAN_600x600_2x.jpg 1200 800 N 15894 3193 product 19375 M 0 19375
0 Druckminderer-Vulkan-F10-F-300-Effect-LabLine-4-42-Stickstoff-2_600x600_2x.jpg 442 500 N 15896 3195 product 19377 M 0 19377
0 Druckminderer-Vulkan-F15-300-Effect-LabLine-Stickstoff-2_600x600_2x.jpg 500 443 N 15897 3196 product 19378 M 0 19378
0 Seite-72-F10-300-Effect-LabLineOMFYxN4xq48Mn_600x600_2x.jpg 1200 800 N 15972 3271 product 19453 M 0 19453
0 Druckminderer-Vulkan-F15-200-Effect-LabLine-Druckluft-2_600x600_2x.jpg 500 443 N 15975 3274 product 19456 M 0 19456
0 Druckminderer-Vulkan-F15-200-Effect-LabLine-Helium-2_600x600_2x.jpg 500 443 N 15977 3276 product 19458 M 0 19458
0 Seite-72-F10-300-Effect-LabLineramNqEU7iAhoC_600x600_2x.jpg 1200 800 N 15983 3282 product 19464 M 0 19464
0 Druckminderer-F15-200-Effect-LabLine-Methan-2_600x600_2x.jpg 500 443 N 15986 3285 product 19467 M 0 19467
0 1348673719-24209_600x600_2x.jpg 500 443 N 15987 3286 product 19468 M 0 19468
0 Seite-74-F15-2-300-Effect-LabLineNW71jED0Newwz_600x600_2x.jpg 1200 800 N 15991 3290 product 19472 M 0 19472
0 Seite-74-F10-2-300-Effect-LabLineBdTXAJfzs6kFl_600x600_2x.jpg 1200 800 N 15995 3294 product 19476 M 0 19476
0 Seite-72-F10-300-Effect-LabLine-LGQF81INHmK4oTE_600x600_2x.jpg 1200 800 N 15996 3295 product 19477 M 0 19477
0 1352909787-9956_600x600.jpg 500 432 N 18973 13260 product 22454 M 0 22454
0 1352909917-11095_600x600.jpg 500 432 N 18974 13261 product 22455 M 0 22455
0 1352910019-12077_600x600.jpg 500 432 N 18975 13262 product 22456 M 0 22456
0 1352910107-12773_600x600.jpg 500 432 N 18976 13263 product 22457 M 0 22457
0 1352910172-13360_600x600.jpg 500 432 N 18977 13264 product 22458 M 0 22458
0 1352910250-13930_600x600.jpg 500 432 N 18978 13265 product 22459 M 0 22459
0 1352910330-14542_600x600.jpg 500 432 N 18979 13266 product 22460 M 0 22460
0 x474851_600x600.jpg 500 432 N 18980 13267 product 22461 M 0 22461
0 1352908615-31041_600x600.jpg 500 432 N 18981 13268 product 22462 M 0 22462
0 1352908724-31983_600x600.jpg 500 432 N 18982 13269 product 22463 M 0 22463
0 1352908865-458_600x600.jpg 500 432 N 18983 13270 product 22464 M 0 22464
0 1352908973-1131_600x600.jpg 500 432 N 18984 13271 product 22465 M 0 22465
0 1352909064-2041_600x600.jpg 500 432 N 18985 13272 product 22466 M 0 22466
0 1352909171-3271_600x600.jpg 500 432 N 18986 13273 product 22467 M 0 22467