Query time 0.00141
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 ('10415','10416','10417','10418','10419','10420','10421','10422','10423','10424','10425','10426','10427','10428','10429','10431')))",
"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 |
51NNbaEAgnL._SL1200_.jpg |
1200 |
1108 |
N |
21343 |
10415 |
product |
23305 |
M |
0 |
|
23305 |
0 |
41bT-wO1GaL._SL1024_.jpg |
1024 |
1024 |
N |
21348 |
10417 |
product |
23310 |
M |
0 |
|
23310 |
0 |
51bCDoed0wL._SL1000_.jpg |
1000 |
1000 |
N |
21365 |
10421 |
product |
23327 |
M |
0 |
|
23327 |
0 |
41JROdh5YZL.jpg |
500 |
500 |
N |
21366 |
10422 |
product |
23328 |
M |
0 |
|
23328 |
0 |
51LCrtKt_hL._SL1000_.jpg |
1000 |
1000 |
N |
21371 |
10423 |
product |
23333 |
M |
0 |
|
23333 |
0 |
51yVizPYUcL._SL1000_.jpg |
1000 |
1000 |
N |
21376 |
10425 |
product |
23338 |
M |
0 |
|
23338 |
0 |
51BJ1rMDZWL._SL1500_.jpg |
1500 |
1500 |
N |
21378 |
10426 |
product |
23340 |
M |
0 |
|
23340 |
0 |
714kLKN8aEL._SL1500_.jpg |
1500 |
1500 |
N |
21382 |
10427 |
product |
23344 |
M |
0 |
|
23344 |
0 |
41uZVjsK5NL._SL1000_.jpg |
1000 |
1000 |
N |
26483 |
10424 |
product |
28445 |
M |
0 |
|
28445 |
0 |
original-xiaomi-mijia-1-5l-electric-water.jpg |
640 |
640 |
N |
26716 |
10431 |
product |
28678 |
M |
0 |
|
28678 |
0 |
Xiaomi-Mijia-Mi-Yeelight-Bedside-Lamp-Table-Desk-Smart-Indoor-Light-16-Million-RGB-Touch-Control.jpg_640x640.jpg |
640 |
640 |
N |
26721 |
10428 |
product |
28683 |
M |
0 |
|
28683 |
0 |
61OD9pqR55L._SL1050_.jpg |
1050 |
1050 |
N |
26733 |
10418 |
product |
28695 |
M |
0 |
|
28695 |
0 |
Xiaomi-Cleaner-SWDK-D260-Handheld-Wireless-Electric-Wiper-Floor-Washers-Wet-Mopping.jpg |
800 |
800 |
N |
26764 |
10420 |
product |
28726 |
M |
0 |
|
28726 |
0 |
thermostat.jpg |
640 |
626 |
N |
47821 |
10416 |
product |
49782 |
M |
0 |
|
49782 |
0 |
2_frub-k1.jpg |
640 |
626 |
N |
82099 |
10429 |
product |
84042 |
M |
0 |
|
84042 |
0 |
2_jthv-0z.jpg |
640 |
626 |
N |
83245 |
10419 |
product |
85188 |
M |
0 |
|
85188 |