Query time 0.00281
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1140.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "214.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": 214,
"rows_produced_per_join": 214,
"filtered": "100.00",
"index_condition": "((`eshopuga_upgr_4122`.`cscart_images_links`.`object_type` = 'variant_image') and (`eshopuga_upgr_4122`.`cscart_images_links`.`type` = 'V') and (`eshopuga_upgr_4122`.`cscart_images_links`.`object_id` in (744,743,746,745,748,747,750,749,772,771,774,773,776,775,794,793,810,809,818,817,822,821,834,833,840,839,848,847,854,853,888,887,890,889,892,891,910,909,926,925,934,933,938,937,950,949,956,955,964,963,970,969,988,987,2547,2546,2549,2548,2551,2550,2553,2552,2555,2554,2557,2556,2576,2575,3251,2574,2572,2573,3252,2564,2565,2562,2563,3253,2571,2570,2569,2568,2567,2566,3430,3431,3432,3433,3434,3435,3436,3437,3438,3439,3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3452,3453,3454,3455,3456,3457,3458)))",
"cost_info": {
"read_cost": "369.81",
"eval_cost": "42.80",
"prefix_cost": "412.61",
"data_read_per_join": "20K"
},
"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": [
"eshopuga_upgr_4122.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 214,
"filtered": "100.00",
"cost_info": {
"read_cost": "214.00",
"eval_cost": "42.80",
"prefix_cost": "669.41",
"data_read_per_join": "163K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(cscart_images), (`eshopuga_upgr_4122`.`cscart_images_links`.`detailed_id` = `eshopuga_upgr_4122`.`cscart_images`.`image_id`), true)"
}
},
{
"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": [
"eshopuga_upgr_4122.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 214,
"filtered": "100.00",
"cost_info": {
"read_cost": "214.00",
"eval_cost": "42.80",
"prefix_cost": "926.21",
"data_read_per_join": "127K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`eshopuga_upgr_4122`.`cscart_common_descriptions`.`object_id` = `eshopuga_upgr_4122`.`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 |
3061 |
|
|
|
|
2943 |
2562 |
variant_image |
0 |
V |
0 |
|
|
3062 |
|
|
|
|
2944 |
2563 |
variant_image |
0 |
V |
0 |
|
|
3063 |
|
|
|
|
2945 |
2564 |
variant_image |
0 |
V |
0 |
|
|
3064 |
|
|
|
|
2946 |
2565 |
variant_image |
0 |
V |
0 |
|
|
3065 |
|
|
|
|
2947 |
2566 |
variant_image |
0 |
V |
0 |
|
|
3066 |
|
|
|
|
2948 |
2567 |
variant_image |
0 |
V |
0 |
|
|
3067 |
|
|
|
|
2949 |
2568 |
variant_image |
0 |
V |
0 |
|
|
3068 |
|
|
|
|
2950 |
2569 |
variant_image |
0 |
V |
0 |
|
|
3069 |
|
|
|
|
2951 |
2570 |
variant_image |
0 |
V |
0 |
|
|
3070 |
|
|
|
|
2952 |
2571 |
variant_image |
0 |
V |
0 |
|
|
3071 |
|
|
|
|
2953 |
2572 |
variant_image |
0 |
V |
0 |
|
|
3072 |
|
|
|
|
2954 |
2573 |
variant_image |
0 |
V |
0 |
|
|
3073 |
|
|
|
|
2955 |
2574 |
variant_image |
0 |
V |
0 |
|
|
3470 |
|
|
|
|
3352 |
3454 |
variant_image |
0 |
V |
0 |
|
|
3471 |
|
|
|
|
3353 |
3455 |
variant_image |
0 |
V |
0 |
|
|
3472 |
|
|
|
|
3354 |
3456 |
variant_image |
0 |
V |
0 |
|
|
3473 |
|
|
|
|
3355 |
3457 |
variant_image |
0 |
V |
0 |
|
|
3474 |
|
|
|
|
3356 |
3458 |
variant_image |
0 |
V |
0 |
|
|