Query time 0.00131
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 ('10030','10031','10032','10033','10034','10035','10036','10037','10038','10041','10042','10043','10045','10046','10048','10049')))",
"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 |
c05ed7988b99e2b3cee1de4bb21cde935ff01ed0_Xiaomi_001-1.jpg |
475 |
475 |
N |
18536 |
10030 |
product |
20498 |
M |
0 |
|
20498 |
0 |
41iQ33JAALL.jpg |
500 |
500 |
N |
18539 |
10031 |
product |
20501 |
M |
0 |
|
20501 |
0 |
31e8cYbmm7L.jpg |
500 |
462 |
N |
18544 |
10032 |
product |
20506 |
M |
0 |
|
20506 |
0 |
31RALUMSCUL.jpg |
371 |
500 |
N |
18551 |
10034 |
product |
20513 |
M |
0 |
|
20513 |
0 |
61yEbHYPNCL._SL1354_.jpg |
1354 |
1354 |
N |
18553 |
10035 |
product |
20515 |
M |
0 |
|
20515 |
0 |
412U9oM498L.jpg |
500 |
500 |
N |
18558 |
10036 |
product |
20520 |
M |
0 |
|
20520 |
0 |
51kbS90gKCL.jpg |
500 |
500 |
N |
18559 |
10037 |
product |
20521 |
M |
0 |
|
20521 |
0 |
61s0quI2ADL._SL1000_.jpg |
1000 |
1000 |
N |
18560 |
10038 |
product |
20522 |
M |
0 |
|
20522 |
0 |
71HrKG1LjYL._SL1500_.jpg |
1500 |
773 |
N |
18571 |
10042 |
product |
20533 |
M |
0 |
|
20533 |
0 |
41gmGrw329L.jpg |
425 |
500 |
N |
18591 |
10048 |
product |
20553 |
M |
0 |
|
20553 |
0 |
31CIyKp7J1L.jpg |
500 |
500 |
N |
18595 |
10049 |
product |
20557 |
M |
0 |
|
20557 |
0 |
mi-bluetooth-headset-basic-black.jpg |
800 |
800 |
N |
22645 |
10045 |
product |
24607 |
M |
0 |
|
24607 |
0 |
xiaomi_amazfit.jpg |
640 |
626 |
N |
37315 |
10033 |
product |
39277 |
M |
0 |
|
39277 |
0 |
61tQZuXvstL._SL1500__k1am-tn.jpg |
1500 |
1500 |
N |
85020 |
10043 |
product |
20630 |
M |
0 |
|
20630 |
0 |
51wLcudizWL._SL1000__2va5-hj.jpg |
1000 |
1000 |
N |
85022 |
10046 |
product |
20634 |
M |
0 |
|
20634 |
0 |
mi_speaker_web.jpg |
640 |
626 |
N |
85025 |
10041 |
product |
57231 |
M |
0 |
|
57231 |