Query time 0.00110
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "69.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "12.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": 12,
"rows_produced_per_join": 12,
"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 ('1931','1941','1951','1955','1970','1985','2000','1737','1745','1466','1463','1388')))",
"cost_info": {
"read_cost": "26.41",
"eval_cost": "2.40",
"prefix_cost": "28.81",
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "2.40",
"prefix_cost": "43.21",
"data_read_per_join": "9K"
},
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "2.40",
"prefix_cost": "57.61",
"data_read_per_join": "7K"
},
"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 |
71w8R1Va2XL._SY355_.jpg |
342 |
355 |
N |
3291 |
1463 |
product |
5267 |
M |
0 |
|
5267 |
0 |
ES2-1.jpg |
555 |
590 |
N |
3343 |
1466 |
product |
5317 |
M |
0 |
|
5317 |
0 |
414PF5AiCeL._AC_.jpg |
351 |
500 |
N |
83437 |
1737 |
product |
83487 |
M |
0 |
|
83487 |
0 |
item_XXL_43764948_e1d7c659b2a5a.jpg |
752 |
968 |
N |
83442 |
1745 |
product |
83623 |
M |
0 |
|
83623 |
0 |
1224-black1_qtaa-yj.jpg |
800 |
1200 |
N |
83466 |
1931 |
product |
7068 |
M |
0 |
|
7068 |
0 |
1202-black2_6hwx-27.jpg |
800 |
1200 |
N |
83471 |
1941 |
product |
7097 |
M |
0 |
|
7097 |
0 |
blouse.jpg |
640 |
626 |
N |
83487 |
1951 |
product |
51258 |
M |
0 |
|
51258 |
0 |
1121-green3_wy3t-eu.jpg |
801 |
1200 |
N |
83491 |
1955 |
product |
7128 |
M |
0 |
|
7128 |
0 |
1002-black2_p794-mj.jpg |
800 |
1200 |
N |
83496 |
1970 |
product |
7159 |
M |
0 |
|
7159 |
0 |
2_9cje-a1.jpg |
640 |
626 |
N |
83498 |
1985 |
product |
85248 |
M |
0 |
|
85248 |
0 |
416cPvDBj-L._AC_.jpg |
500 |
500 |
N |
83514 |
2000 |
product |
83488 |
M |
0 |
|
83488 |
0 |
68619408_B_V1.jpg |
1000 |
1000 |
N |
85010 |
1388 |
product |
40473 |
M |
0 |
|
40473 |