Query time 0.00122
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "16.00"
},
"nested_loop": [
{
"table": {
"table_name": "q_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": 16,
"rows_produced_per_join": 16,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'M') and (`portal`.`q_images_links`.`object_id` in ('9517','9518','9519','9520','9521','9522','9523','9524','9525','9526','9527','9528','9529','9530','9531','9532')))",
"cost_info": {
"read_cost": "35.21",
"eval_cost": "3.20",
"prefix_cost": "38.41",
"data_read_per_join": "1K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "q_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"portal.q_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "57.61",
"data_read_per_join": "12K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "q_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"portal.q_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "76.81",
"data_read_per_join": "9K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_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 |
ICP-IPD380-CBLK_2.jpg |
560 |
560 |
N |
20341 |
9517 |
product |
22303 |
M |
0 |
|
22303 |
0 |
ICP-IPD380-CBLK_2_a39c58cd-99fc-4a34-81a1-c9a51e3155aa.jpg |
560 |
560 |
N |
20342 |
9518 |
product |
22304 |
M |
0 |
|
22304 |
0 |
ICP-IPH1468-CLR_LS.jpg |
800 |
800 |
N |
20344 |
9520 |
product |
22306 |
M |
0 |
|
22306 |
0 |
ICP-IPH1470-CBK_LS.jpg |
800 |
800 |
N |
20345 |
9521 |
product |
22307 |
M |
0 |
|
22307 |
0 |
ICP-IPH1470-CCN_LS2.jpg |
800 |
800 |
N |
20346 |
9522 |
product |
22308 |
M |
0 |
|
22308 |
0 |
ICP-IPH1470-CLR_LS.jpg |
800 |
800 |
N |
20347 |
9523 |
product |
22309 |
M |
0 |
|
22309 |
0 |
ICP-IPH1494-CLR_LS.jpg |
800 |
800 |
N |
20349 |
9525 |
product |
22311 |
M |
0 |
|
22311 |
0 |
ICP-IPH1470-CBK_LS_a07994df-483e-4c35-9b4d-3eb9884bc645.jpg |
800 |
800 |
N |
20350 |
9526 |
product |
22312 |
M |
0 |
|
22312 |
0 |
ICP-IPH1630-CLR_2.jpg |
1500 |
1500 |
N |
20351 |
9527 |
product |
22313 |
M |
0 |
|
22313 |
0 |
ICP-IPH1630-NVY.jpg |
1013 |
1500 |
N |
20352 |
9528 |
product |
22314 |
M |
0 |
|
22314 |
0 |
ICP-IPH1630-SMK.jpg |
1041 |
1500 |
N |
20353 |
9529 |
product |
22315 |
M |
0 |
|
22315 |
0 |
ICP-IPH1639-GMT_3.jpg |
1000 |
1000 |
N |
20354 |
9530 |
product |
22316 |
M |
0 |
|
22316 |
0 |
ICP-IPH1639-MDNT_2.jpg |
560 |
560 |
N |
20355 |
9531 |
product |
22317 |
M |
0 |
|
22317 |
0 |
ICP-IPH1643-BLK.jpg |
1000 |
1000 |
N |
20356 |
9532 |
product |
22318 |
M |
0 |
|
22318 |
0 |
718NcS_gv2L._SL1500_.jpg |
1500 |
1500 |
N |
25827 |
9519 |
product |
27789 |
M |
0 |
|
27789 |
0 |
IPH-1474-SMK_ab_1024x.jpg |
1024 |
1024 |
N |
25864 |
9524 |
product |
27826 |
M |
0 |
|
27826 |